diff options
Diffstat (limited to 'hm/soispha/conf/nvim/plugins/lsp')
10 files changed, 0 insertions, 196 deletions
diff --git a/hm/soispha/conf/nvim/plugins/lsp/default.nix b/hm/soispha/conf/nvim/plugins/lsp/default.nix deleted file mode 100644 index b7c1e174..00000000 --- a/hm/soispha/conf/nvim/plugins/lsp/default.nix +++ /dev/null @@ -1,29 +0,0 @@ -{...}: { - imports = [ - ./keymaps - ./servers - ]; - programs.nixvim.plugins.lsp = { - enable = true; - onAttach = - "" - # + '' - # function(client, bufnr) - # -- Enable completion triggered by <c-x><c-o> - # -- vim.api.nvim_buf_set_option(bufnr, 'omnifunc', 'v:lua.vim.lsp.omnifunc') - # end - # '' - ; - preConfig = '' - vim.diagnostic.config({ - underline = true, - -- virtual_text = true, - virtual_text = { - source = "always", -- Or "if_many" - }, - update_in_insert = true, - severity_sort = true, - }, nil); - ''; - }; -} diff --git a/hm/soispha/conf/nvim/plugins/lsp/keymaps/default.nix b/hm/soispha/conf/nvim/plugins/lsp/keymaps/default.nix deleted file mode 100644 index 4017521d..00000000 --- a/hm/soispha/conf/nvim/plugins/lsp/keymaps/default.nix +++ /dev/null @@ -1,72 +0,0 @@ -{...}: { - programs.nixvim = { - plugins.lsp.keymaps = { - diagnostic = { - "N" = { - action = "goto_prev"; - desc = "go to previous diagnostic message"; - }; - "T" = { - action = "goto_next"; - desc = "go to next diagnostic message"; - }; - "<space>e" = { - action = "open_float"; - desc = "open float for the symbol"; - }; - "<space>gq" = { - action = "setloclist"; - desc = "add buffer diagnostic to the location list (quick-fix)"; - }; - }; - lspBuf = { - "<space>gD" = { - action = "declaration"; - desc = "[G]o to [d]eclaration"; - }; - "<space>hi" = { - action = "hover"; - desc = "Display [h]over [i]nformation"; - }; - "<space>sh" = { - action = "signature_help"; - desc = "Display [s]ignature [h]elp"; - }; - "<space>wa" = { - action = "add_workspace_folder"; - desc = "[W]orkspace folder [a]dd"; - }; - "<space>wr" = { - action = "remove_workspace_folder"; - desc = "[W]orkspace folder [r]emove"; - }; - "<space>rn" = { - action = "rename"; - desc = "[R]e[n]ame the item under the cursor"; - }; - "<space>ca" = { - action = "code_action"; - desc = "Open the [c]ode [a]ction menu"; - }; - }; - }; - maps = { - normal = { - "<space>f" = { - action = "function() vim.lsp.buf.format { async = true } end"; - lua = true; - desc = "[F]ormat the current buffer (asynchronously)"; - }; - "<space>wl" = { - action = '' - function() - print(vim.inspect(vim.lsp.buf.list_workspace_folders())) - end - ''; - lua = true; - desc = "[W]orkspace folders [l]ist"; - }; - }; - }; - }; -} diff --git a/hm/soispha/conf/nvim/plugins/lsp/servers/default.nix b/hm/soispha/conf/nvim/plugins/lsp/servers/default.nix deleted file mode 100644 index 8ffac2e1..00000000 --- a/hm/soispha/conf/nvim/plugins/lsp/servers/default.nix +++ /dev/null @@ -1,11 +0,0 @@ -{...}: { - imports = [ - ./servers/bashls.nix - ./servers/ltex.nix - ./servers/lua-ls.nix - ./servers/nil_ls.nix - ./servers/rust-analyzer.nix - ./servers/texlab.nix - ./servers/ccls.nix - ]; -} diff --git a/hm/soispha/conf/nvim/plugins/lsp/servers/servers/bashls.nix b/hm/soispha/conf/nvim/plugins/lsp/servers/servers/bashls.nix deleted file mode 100644 index 0577a335..00000000 --- a/hm/soispha/conf/nvim/plugins/lsp/servers/servers/bashls.nix +++ /dev/null @@ -1,5 +0,0 @@ -{...}: { - programs.nixvim.plugins.lsp.servers = { - bashls.enable = true; - }; -} diff --git a/hm/soispha/conf/nvim/plugins/lsp/servers/servers/ccls.nix b/hm/soispha/conf/nvim/plugins/lsp/servers/servers/ccls.nix deleted file mode 100644 index 0698bcce..00000000 --- a/hm/soispha/conf/nvim/plugins/lsp/servers/servers/ccls.nix +++ /dev/null @@ -1,5 +0,0 @@ -{...}: { - programs.nixvim.plugins.lsp.servers = { - ccls.enable = true; - }; -} diff --git a/hm/soispha/conf/nvim/plugins/lsp/servers/servers/ltex.nix b/hm/soispha/conf/nvim/plugins/lsp/servers/servers/ltex.nix deleted file mode 100644 index 0d039f82..00000000 --- a/hm/soispha/conf/nvim/plugins/lsp/servers/servers/ltex.nix +++ /dev/null @@ -1,39 +0,0 @@ -{...}: { - programs.nixvim.plugins.lsp.servers = { - ltex = let - filetypes = [ - "rust" - "java" - "cpp" - "shell" - "bash" - - "bibtex" - "context" - "context.tex" - "latex" - "tex" - - "html" - "markdown" - "org" - "restructuredtext" - "rsweave" - - "git-commit" - "gitcommit" - ]; - in { - enable = true; - inherit filetypes; - settings = { - enabled = filetypes; - completionEnabled = false; - language = "en-CA"; - additionalRules = { - enablePickyRules = true; - }; - }; - }; - }; -} diff --git a/hm/soispha/conf/nvim/plugins/lsp/servers/servers/lua-ls.nix b/hm/soispha/conf/nvim/plugins/lsp/servers/servers/lua-ls.nix deleted file mode 100644 index 5a44b500..00000000 --- a/hm/soispha/conf/nvim/plugins/lsp/servers/servers/lua-ls.nix +++ /dev/null @@ -1,8 +0,0 @@ -{...}: { - programs.nixvim.plugins.lsp.servers = { - lua-ls = { - enable = true; - settings.telemetry.enable = false; - }; - }; -} diff --git a/hm/soispha/conf/nvim/plugins/lsp/servers/servers/nil_ls.nix b/hm/soispha/conf/nvim/plugins/lsp/servers/servers/nil_ls.nix deleted file mode 100644 index f0cccbdc..00000000 --- a/hm/soispha/conf/nvim/plugins/lsp/servers/servers/nil_ls.nix +++ /dev/null @@ -1,10 +0,0 @@ -{...}: { - programs.nixvim.plugins.lsp.servers = { - nil_ls = { - enable = true; - settings = { - formatting.command = ["alejandra"]; - }; - }; - }; -} diff --git a/hm/soispha/conf/nvim/plugins/lsp/servers/servers/rust-analyzer.nix b/hm/soispha/conf/nvim/plugins/lsp/servers/servers/rust-analyzer.nix deleted file mode 100644 index 943a8c80..00000000 --- a/hm/soispha/conf/nvim/plugins/lsp/servers/servers/rust-analyzer.nix +++ /dev/null @@ -1,10 +0,0 @@ -{...}: { - programs.nixvim.plugins.lsp.servers = { - rust-analyzer = { - enable = true; - settings = { - typing.autoClosingAngleBrackets.enable = true; - }; - }; - }; -} diff --git a/hm/soispha/conf/nvim/plugins/lsp/servers/servers/texlab.nix b/hm/soispha/conf/nvim/plugins/lsp/servers/servers/texlab.nix deleted file mode 100644 index 59af8d39..00000000 --- a/hm/soispha/conf/nvim/plugins/lsp/servers/servers/texlab.nix +++ /dev/null @@ -1,7 +0,0 @@ -{...}: { - programs.nixvim.plugins.lsp.servers = { - texlab = { - enable = true; - }; - }; -} |