diff options
| author | seth <[email protected]> | 2022-09-01 08:51:22 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2022-09-01 09:46:08 -0400 |
| commit | a3f264ae81ea7596f72b7d06fe577ff2dee2dd91 (patch) | |
| tree | cf1ee9b6108aa5d9413dc22583df1196c50a0010 /.config/nvim/lua/getchoo/lsp/server.lua | |
| parent | 59b844443f5a5c867a98f8b89dce5b9c6ce3783f (diff) | |
separate neovim plugin configs more
Diffstat (limited to '.config/nvim/lua/getchoo/lsp/server.lua')
| -rw-r--r-- | .config/nvim/lua/getchoo/lsp/server.lua | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/.config/nvim/lua/getchoo/lsp/server.lua b/.config/nvim/lua/getchoo/lsp/server.lua index 9c35aaf..c4ff20b 100644 --- a/.config/nvim/lua/getchoo/lsp/server.lua +++ b/.config/nvim/lua/getchoo/lsp/server.lua @@ -7,10 +7,12 @@ 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_lspconfig) -require("mason-tool-installer").setup(config.mason_tool_installer) -vim.opt.runtimepath:append("~/.local/share/nvim/mason/bin/") +if vim.g.use_mason then + require("mason").setup() + require("mason-lspconfig").setup(config.mason_lspconfig) + require("mason-tool-installer").setup(config.mason_tool_installer) + vim.opt.runtimepath:append("~/.local/share/nvim/mason/bin/") +end null_ls.setup(config.null_ls) cmp.setup(config.cmp) |
