Compare commits

..

No commits in common. "41c3266ee2de353cc3030b241b715e2cc241f58c" and "94d9bae95b104db7c458baa905f421f3351daeeb" have entirely different histories.

3 changed files with 13 additions and 19 deletions

View file

@ -7,8 +7,6 @@
c = true; c = true;
docker = true; docker = true;
fpga = true; fpga = true;
perl = true;
php = true;
python = true; python = true;
}; };
extra = true; extra = true;

View file

@ -2,7 +2,7 @@
let let
nixvim = import (builtins.fetchGit { nixvim = import (builtins.fetchGit {
url = "https://github.com/nix-community/nixvim"; url = "https://github.com/nix-community/nixvim";
rev = "c96d7b46d05a78e695ed1c725d1596b65509b4f9"; # 24.05 Anythin after this commit works ref = "nixos-23.11";
}); });
vim-shot-f = pkgs.vimUtils.buildVimPlugin { vim-shot-f = pkgs.vimUtils.buildVimPlugin {
pname = "vim-shot-f"; pname = "vim-shot-f";
@ -98,10 +98,10 @@ in
gS = "search_history"; gS = "search_history";
gC = "commands"; gC = "commands";
gr = "lsp_references"; gr = "lsp_references";
ge = "diagnostics";
# ga = "lsp_code_actions"; # ga = "lsp_code_actions";
# ge = "lsp_document_diagnostics";
# gE = "lsp_workspace_diagnostics"; # gE = "lsp_workspace_diagnostics";
# TODO Above makes nvim crash on startup, action is not provided # FIXME Above makes nvim crash on startup, action is not provided
gd = "lsp_definitions"; gd = "lsp_definitions";
gs = "lsp_document_symbols"; gs = "lsp_document_symbols";
}; };
@ -156,14 +156,14 @@ in
}; };
}; };
servers = { servers = {
ansiblels.enable = config.frogeye.dev.ansible; # Ansible # FIXME ansiblels
bashls.enable = true; # Bash bashls.enable = true; # Bash
jsonls.enable = true; # JSON jsonls.enable = true; # JSON
lua-ls.enable = true; # Lua (for Neovim debugging) lua-ls.enable = true; # Lua (for Neovim debugging)
perlpls.enable = config.frogeye.dev.perl; # Perl # FIXME perlls
pylsp = { pylsp = lib.mkIf config.frogeye.dev.python {
# Python # Python
enable = config.frogeye.dev.python; enable = true;
settings.plugins = { settings.plugins = {
black.enabled = true; black.enabled = true;
flake8 = { flake8 = {
@ -187,21 +187,20 @@ in
"--disallow-untyped-calls" "--disallow-untyped-calls"
"--disallow-incomplete-defs" "--disallow-incomplete-defs"
"--disallow-untyped-decorators" "--disallow-untyped-decorators"
true
]; ];
}; };
# FIXME Somehow no warning is shown
# TODO Could add some, could also remove some # TODO Could add some, could also remove some
}; };
}; };
phpactor.enable = config.frogeye.dev.php; # PHP phpactor.enable = true; # PHP
rnix-lsp.enable = true; # Nix rnix-lsp.enable = true; # Nix
# TODO Something for SQL. sqls is deprecated, sqlls is not in Nixpkgs. Probably needs a DB connection configured anyways? # FIXME sqlls
yamlls.enable = true; # YAML yamlls.enable = true; # YAML
# TODO Check out none-ls # TODO Check out none-ls
}; };
onAttach = '' # FIXME vim.api.nvim_buf_set_option(bufnr, 'omnifunc', 'v:lua.vim.lsp.omnifunc') as onAttach... is it needed?
vim.api.nvim_buf_set_option(bufnr, 'omnifunc', 'v:lua.vim.lsp.omnifunc') # FIXME flags = { debounce_text_changes = 150 } is the default value ok? Maybe it was actually ignored
''; # Seems needed for auto-completion with nvim-compe
}; };
nvim-lightbulb = { nvim-lightbulb = {
# Shows a lightbulb whenever a codeAction is available under the cursor # Shows a lightbulb whenever a codeAction is available under the cursor
@ -289,14 +288,13 @@ in
] ++ lib.optionals config.frogeye.dev.c [ ] ++ lib.optionals config.frogeye.dev.c [
nvim-dap # Debug Adapter Protocol client nvim-dap # Debug Adapter Protocol client
] ++ lib.optionals config.frogeye.dev.ansible [ ] ++ lib.optionals config.frogeye.dev.ansible [
ansible-vim # TODO Doesn't have snippets ansible-vim # FIXME See if it doesn't require to do ./UltiSnips/generate.sh
]; ];
extraConfigLua = lib.strings.concatMapStringsSep "\n" (f: builtins.readFile f) [ extraConfigLua = lib.strings.concatMapStringsSep "\n" (f: builtins.readFile f) [
./vim/feline.lua ./vim/feline.lua
./vim/symbols-outline-nvim.lua ./vim/symbols-outline-nvim.lua
./vim/lsp_signature-nvim.lua ./vim/lsp_signature-nvim.lua
./vim/nvim-ts-rainbow.lua ./vim/nvim-ts-rainbow.lua
./vim/nvim-compe.lua
]; ];
extraConfigVim = '' extraConfigVim = ''
" GENERAL " GENERAL

View file

@ -30,8 +30,6 @@
c = lib.mkEnableOption "C/C++ dev stuff"; c = lib.mkEnableOption "C/C++ dev stuff";
docker = lib.mkEnableOption "Docker dev stuff"; docker = lib.mkEnableOption "Docker dev stuff";
fpga = lib.mkEnableOption "FPGA dev stuff"; fpga = lib.mkEnableOption "FPGA dev stuff";
perl = lib.mkEnableOption "Perl dev stuff";
php = lib.mkEnableOption "PHP dev stuff";
python = lib.mkEnableOption "Python dev stuff"; python = lib.mkEnableOption "Python dev stuff";
}; };
shellAliases = lib.mkOption { shellAliases = lib.mkOption {