summaryrefslogtreecommitdiff
path: root/lua/tjk/plugins/lsp.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/tjk/plugins/lsp.lua')
-rw-r--r--lua/tjk/plugins/lsp.lua16
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
+}