From 8fef927ede6733c20a53c4b0c13d2ab4cb08b604 Mon Sep 17 00:00:00 2001 From: seth Date: Wed, 24 Aug 2022 15:37:06 -0400 Subject: refactor lsp config --- .config/nvim/lua/getchoo/lsp/config/init.lua | 34 ++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .config/nvim/lua/getchoo/lsp/config/init.lua (limited to '.config/nvim/lua/getchoo/lsp/config/init.lua') 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 -- cgit v1.2.3