diff options
Diffstat (limited to '.config/nvim/lua/plugins/nvim-lspconfig.lua')
-rw-r--r-- | .config/nvim/lua/plugins/nvim-lspconfig.lua | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/.config/nvim/lua/plugins/nvim-lspconfig.lua b/.config/nvim/lua/plugins/nvim-lspconfig.lua new file mode 100644 index 0000000..c139acb --- /dev/null +++ b/.config/nvim/lua/plugins/nvim-lspconfig.lua @@ -0,0 +1,45 @@ +local config = function() + require("neoconf").setup({}) + local cmp_nvim_lsp = require("cmp_nvim_lsp") + -- vim.lsp.enable({ “pyright”, “bashls” }) + -- local lspconfig = require("lspconfig") + local capabilities = cmp_nvim_lsp.default_capabilities() + + -- python + -- lspconfig.pyright.setup({ + -- capabilities = capabilities, + -- on_attach = on_attach, + -- settings = { + -- pyright = { + -- disableOrganizeImports = false, + -- analysis = { + -- useLibraryCodeForTypes = true, + -- autoSearchPaths = true, + -- diagnosticMode = "workspace", + -- autoImportCompletions = true, + -- }, + -- }, + -- }, + -- }) + + -- bash + -- lspconfig.bashls.setup({ + -- capabilities = capabilities, + -- on_attach = on_attach, + -- filetypes = { "sh" }, + -- }) + +end + +return { + "neovim/nvim-lspconfig", + config = config, + lazy = false, + dependencies = { + "windwp/nvim-autopairs", + "williamboman/mason.nvim", + "hrsh7th/nvim-cmp", + "hrsh7th/cmp-buffer", + "hrsh7th/cmp-nvim-lsp", + }, +} |