diff options
| author | Thomas Schmucker <ts@its1.de> | 2023-04-05 17:31:34 +0200 |
|---|---|---|
| committer | Thomas Schmucker <ts@its1.de> | 2023-04-05 17:31:34 +0200 |
| commit | 6af68c8587be7cfd334709ff514b3f14c74b092d (patch) | |
| tree | df4762ff5b0d26a01814fa599d65382a760900aa /nvim/plugins.vim | |
| parent | e9a550990ade0b01d006b2fe5912f4c722285dc7 (diff) | |
| download | dotfiles-6af68c8587be7cfd334709ff514b3f14c74b092d.tar.gz dotfiles-6af68c8587be7cfd334709ff514b3f14c74b092d.tar.bz2 dotfiles-6af68c8587be7cfd334709ff514b3f14c74b092d.zip | |
LSP Konfiguration und Keybindings hinzugefügt
Diffstat (limited to 'nvim/plugins.vim')
| -rw-r--r-- | nvim/plugins.vim | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/nvim/plugins.vim b/nvim/plugins.vim index 3111f6a..65477d8 100644 --- a/nvim/plugins.vim +++ b/nvim/plugins.vim | |||
| @@ -17,6 +17,7 @@ call plug#begin() | |||
| 17 | Plug 'tpope/vim-repeat' | 17 | Plug 'tpope/vim-repeat' |
| 18 | Plug 'tpope/vim-surround' | 18 | Plug 'tpope/vim-surround' |
| 19 | Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'} | 19 | Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'} |
| 20 | Plug 'neovim/nvim-lspconfig' | ||
| 20 | call plug#end() | 21 | call plug#end() |
| 21 | 22 | ||
| 22 | " EMMET | 23 | " EMMET |
| @@ -67,3 +68,21 @@ require'nvim-treesitter.configs'.setup { | |||
| 67 | }, | 68 | }, |
| 68 | } | 69 | } |
| 69 | EOF | 70 | EOF |
| 71 | |||
| 72 | " LSP | ||
| 73 | lua << EOF | ||
| 74 | local lspconfig = require'lspconfig' | ||
| 75 | lspconfig.clangd.setup { | ||
| 76 | cmd = { 'clangd15' } | ||
| 77 | } | ||
| 78 | lspconfig.lua_ls.setup {} | ||
| 79 | lspconfig.pyright.setup {} | ||
| 80 | lspconfig.tsserver.setup {} | ||
| 81 | lspconfig.vimls.setup {} | ||
| 82 | lspconfig.rust_analyzer.setup { | ||
| 83 | -- Server-specific settings. See `:help lspconfig-setup` | ||
| 84 | settings = { | ||
| 85 | ['rust-analyzer'] = {}, | ||
| 86 | }, | ||
| 87 | } | ||
| 88 | EOF | ||
