diff options
| author | Jean-Pierre Appel <jeanpierre.appel01@gmail.com> | 2023-08-26 21:18:50 -0400 |
|---|---|---|
| committer | Jean-Pierre Appel <jeanpierre.appel01@gmail.com> | 2023-08-26 21:18:50 -0400 |
| commit | c1bec17f77ab5ad2522702849164e04884e1179f (patch) | |
| tree | 8ea565ae10c0179914c59f3c856c4ca5dac28556 /nvim/lua/lsp.lua | |
| parent | b5a73e484db3094b7729ab856dbe8cdfe68ce9db (diff) | |
moved to lazy.nvim, configured lsp
Diffstat (limited to 'nvim/lua/lsp.lua')
| -rw-r--r-- | nvim/lua/lsp.lua | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/nvim/lua/lsp.lua b/nvim/lua/lsp.lua new file mode 100644 index 0000000..cac88ef --- /dev/null +++ b/nvim/lua/lsp.lua @@ -0,0 +1,25 @@ +local lsp = require('lsp-zero') + +lsp.preset({}) + +lsp.ensure_installed({ + 'pylsp', + 'gopls', + 'tsserver', + 'rust_analyzer' +}) + +lsp.on_attach(function(client, bufnr) + -- see :help lsp-zero-keybindings + -- to learn the available actions + lsp.default_keymaps({buffer = bufnr}) +end) + +lsp.set_preferences({ + sign_icons = { } +}) + +require('lspconfig').lua_ls.setup(lsp.nvim_lua_ls()) + + +lsp.setup() |
