From dec8d36cbdbb3b9c5c12792ed199892ce2e82069 Mon Sep 17 00:00:00 2001 From: seth Date: Sun, 31 Dec 2023 08:01:03 -0500 Subject: back to regular lua --- config/plugins/lsp.nix | 72 -------------------------------------------------- 1 file changed, 72 deletions(-) delete mode 100644 config/plugins/lsp.nix (limited to 'config/plugins/lsp.nix') diff --git a/config/plugins/lsp.nix b/config/plugins/lsp.nix deleted file mode 100644 index 0b8e3cd..0000000 --- a/config/plugins/lsp.nix +++ /dev/null @@ -1,72 +0,0 @@ -{ - plugins.lsp = { - enable = true; - - # nil-ls wants dynamicRegistration - capabilities = '' - capabilities = vim.tbl_deep_extend( - "force", - vim.lsp.protocol.make_client_capabilities(), - require("cmp_nvim_lsp").default_capabilities(), - { workspace = { didChangeWatchedFiles = { dynamicRegistration = true } } } - ) - ''; - - keymaps = { - diagnostic = { - "e" = "open_float"; - "[d" = "goto_prev"; - "]d" = "goto_next"; - "u" = "setloclist"; - }; - - lspBuf = { - "ca" = "code_action"; - }; - }; - - servers = let - enable = {enable = true;}; - - optional = - enable - // { - installLanguageServer = false; - autostart = false; - }; - in { - bashls = enable; - clangd = optional; - denols = optional; - eslint = optional; - - lua-ls = enable; - - nil_ls = - enable - // { - settings.formatting.command = ["alejandra"]; - }; - - pyright = optional; - ruff-lsp = - optional - // { - # let pyright handle it - onAttach.function = '' - client.server_capabilities.hoverProvider = false - ''; - }; - - rust-analyzer = - optional - // { - installRustc = false; - installCargo = false; - settings.check.command = "clippy"; - }; - - tsserver = optional; - }; - }; -} -- cgit v1.2.3