From 8e62d28cf8b662512d222c464c5ea2469045d7a3 Mon Sep 17 00:00:00 2001 From: Justine Smithies Date: Tue, 7 Oct 2025 21:05:44 +0100 Subject: Initial commit --- .config/nvim/lua/plugins/nvim-lspconfig.lua | 45 +++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .config/nvim/lua/plugins/nvim-lspconfig.lua (limited to '.config/nvim/lua/plugins/nvim-lspconfig.lua') 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", + }, +} -- cgit v1.2.3