Skip to content

Commit

Permalink
feat(nvim): use lsp managed by nix
Browse files Browse the repository at this point in the history
rnix and marksman
  • Loading branch information
sbulav committed Sep 25, 2023
1 parent a3d2696 commit c8d4ad6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions nvim/lua/plugins/lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ return {
},
},
-- pyright = {},
-- nil = {},

-- terraformls = {},
yamlls = {
-- lazy-load schemastore when needed
Expand Down Expand Up @@ -95,7 +93,6 @@ return {
},
},
},
marksman = {},
},
-- you can do any additional lsp server setup here
-- return true if you don't want this server to be setup with lspconfig
Expand All @@ -122,7 +119,8 @@ return {
local capabilities =
require("cmp_nvim_lsp").default_capabilities(vim.lsp.protocol.make_client_capabilities())

require("mason-lspconfig").setup { ensure_installed = vim.tbl_keys(servers) }
require("mason-lspconfig").setup {}
-- require("mason-lspconfig").setup { ensure_installed = vim.tbl_keys(servers) }
require("mason-lspconfig").setup_handlers {
function(server)
local server_opts = servers[server] or {}
Expand All @@ -138,6 +136,9 @@ return {
end
require("lspconfig")[server].setup(server_opts)
end,
-- manually configured servers
require("lspconfig")["rnix"].setup {},
require("lspconfig")["marksman"].setup { cmd = { "marksman", "server" } },
}
end,
},
Expand Down

0 comments on commit c8d4ad6

Please sign in to comment.