diff options
author | Tim Keller <tjkeller.xyz> | 2025-01-06 09:51:41 -0600 |
---|---|---|
committer | Tim Keller <tjkeller.xyz> | 2025-01-06 09:51:41 -0600 |
commit | 0002b2cfb64b25029322bd7dc0031c63e19ade08 (patch) | |
tree | 4c6be46e71239d0067fd7834532c9b6eb64efbd8 /lua/tjk/plugins/lsp.lua | |
parent | 8e38f7406f5cee213562950bf23e0d44d6562e44 (diff) | |
download | nvim-0002b2cfb64b25029322bd7dc0031c63e19ade08.tar.xz nvim-0002b2cfb64b25029322bd7dc0031c63e19ade08.zip |
fix for new nixos w/ nvim 10 and add lsp support
Diffstat (limited to 'lua/tjk/plugins/lsp.lua')
-rw-r--r-- | lua/tjk/plugins/lsp.lua | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lua/tjk/plugins/lsp.lua b/lua/tjk/plugins/lsp.lua new file mode 100644 index 0000000..050a5a6 --- /dev/null +++ b/lua/tjk/plugins/lsp.lua @@ -0,0 +1,16 @@ +return { + "neovim/nvim-lspconfig", + dependencies = { + "williamboman/mason.nvim", -- install lsp's + "williamboman/mason-lspconfig.nvim", + }, + config = function() + require("mason").setup() + require("mason-lspconfig").setup { automatic_installation = true } + local lspconfig = require("lspconfig") + lspconfig.pylsp.setup { + autostart = false, + capabilities = require("cmp_nvim_lsp").default_capabilities() + } + end +} |