summaryrefslogtreecommitdiff
path: root/plugins/lspconfig.lua
diff options
context:
space:
mode:
authorseth <[email protected]>2023-11-01 06:42:48 -0400
committerseth <[email protected]>2023-11-01 06:42:48 -0400
commit09004f4517eba8f57d37897e34f6ba56ad3653f1 (patch)
tree6ae19b13a2694fe852caa6c77665af24ea59fe9e /plugins/lspconfig.lua
parentca59ebcf3dd17153b90a0ceca86af14db941ac3c (diff)
stop using neovim.nix
i had small, but annoying issues here and i don't care for lazy loading much tbh
Diffstat (limited to 'plugins/lspconfig.lua')
-rw-r--r--plugins/lspconfig.lua49
1 files changed, 0 insertions, 49 deletions
diff --git a/plugins/lspconfig.lua b/plugins/lspconfig.lua
deleted file mode 100644
index a17d5ab..0000000
--- a/plugins/lspconfig.lua
+++ /dev/null
@@ -1,49 +0,0 @@
-return function()
- local sources = {
- ["bashls"] = "bash-language-server",
- ["clangd"] = "clangd",
- ["eslint"] = "eslint",
- ["nil_ls"] = "nil",
- ["pyright"] = "pyright-langserver",
- ["rust_analyzer"] = "rust-analyzer",
- ["tsserver"] = "typescript-language-server",
- }
-
- local capabilities = vim.tbl_deep_extend(
- "force",
- require("cmp_nvim_lsp").default_capabilities(vim.lsp.protocol.make_client_capabilities()),
- { workspace = { didChangeWatchedFiles = { dynamicRegistration = true } } }
- )
-
- local all_config = {
- capabilities = capabilities,
- }
-
- local servers = {}
- for server, binary in pairs(sources) do
- if vim.fn.executable(binary) == 1 then
- servers[server] = all_config
- end
- end
-
- servers["lua_ls"] = {
- capabilities = capabilities,
- settings = {
- Lua = {
- runtime = {
- version = "LuaJIT",
- },
- diagnostics = {
- globals = { "vim" },
- },
- workspace = {
- library = vim.api.nvim_get_runtime_file("", true),
- },
- },
- },
- }
-
- for server, settings in pairs(servers) do
- require("lspconfig")[server].setup(settings)
- end
-end