summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/getchoo/lsp/config/init.lua
diff options
context:
space:
mode:
authorseth <[email protected]>2022-08-24 15:37:06 -0400
committerseth <[email protected]>2022-08-24 15:37:06 -0400
commit8fef927ede6733c20a53c4b0c13d2ab4cb08b604 (patch)
treec5eae97847773355ffd3f2afcc84c7c9c2a5b387 /.config/nvim/lua/getchoo/lsp/config/init.lua
parentee45c4211d79dfb3b62531cc4f974ac3932e5131 (diff)
refactor lsp config
Diffstat (limited to '.config/nvim/lua/getchoo/lsp/config/init.lua')
-rw-r--r--.config/nvim/lua/getchoo/lsp/config/init.lua34
1 files changed, 34 insertions, 0 deletions
diff --git a/.config/nvim/lua/getchoo/lsp/config/init.lua b/.config/nvim/lua/getchoo/lsp/config/init.lua
new file mode 100644
index 0000000..b136dcf
--- /dev/null
+++ b/.config/nvim/lua/getchoo/lsp/config/init.lua
@@ -0,0 +1,34 @@
+-- wrapper for all configs
+local cmp = require("getchoo.lsp.config.cmp")
+local lsp_config = require("getchoo.lsp.config.lsp_config")
+local mason = require("getchoo.lsp.config.mason")
+local null_ls = require("getchoo.lsp.config.null_ls")
+
+local M = {}
+
+M.bufferline = {
+ options = {
+ numbers = "ordinal",
+ diagnostics = "nvim_lsp",
+ always_show_bufferline = false,
+ },
+}
+
+M.cmp = cmp.config
+
+M.lsp_servers = lsp_config.servers
+
+M.mason_tool_installer = mason.mason_tool_installer
+M.mason_lsp = mason.mason_lsp_config
+
+M.null_ls = null_ls.config
+
+M.tree = {}
+
+M.treesitter = {
+ auto_install = true,
+}
+
+M.trouble = {}
+
+return M