diff options
| author | seth <[email protected]> | 2022-08-17 19:01:57 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2022-08-21 14:15:37 -0400 |
| commit | d99f98423439020e7bd5fdae0493aa5da9d9bf14 (patch) | |
| tree | e25b40d44afe36117a0ceefa603f5b3923a8886e /.config/nvim/lua/getchoo/lsp/server.lua | |
| parent | a6a978410d0daecff139a3ab971dc94c75427eb7 (diff) | |
refactor
Diffstat (limited to '.config/nvim/lua/getchoo/lsp/server.lua')
| -rw-r--r-- | .config/nvim/lua/getchoo/lsp/server.lua | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/.config/nvim/lua/getchoo/lsp/server.lua b/.config/nvim/lua/getchoo/lsp/server.lua new file mode 100644 index 0000000..8521801 --- /dev/null +++ b/.config/nvim/lua/getchoo/lsp/server.lua @@ -0,0 +1,18 @@ +-- +-- initialize lsp servers +-- + +local lspconfig = require("lspconfig") +local null_ls = require("null-ls") +local config = require("getchoo.lsp.config") + +require("mason").setup() +require("mason-lspconfig").setup(config.mason_lsp) +require("mason-tool-installer").setup(config.mason_tool_installer) +vim.opt.runtimepath:append("~/.local/share/nvim/mason/bin/") + +for server, settings in pairs(config.lsp_servers) do + lspconfig[server].setup(require("coq").lsp_ensure_capabilities(settings)) +end + +null_ls.setup(config.null_ls) |
