diff options
author | Ryan Schanzenbacher <ryan@rschanz.org> | 2023-09-04 11:48:55 -0400 |
---|---|---|
committer | Ryan Schanzenbacher <ryan@rschanz.org> | 2023-09-04 11:48:55 -0400 |
commit | 7c01f4cdc87ad82b1af4daca8d74b379acb6fa3b (patch) | |
tree | 00b0f9d812b708658e15e5000ad931fa08c6a0c7 /home-config/nvim | |
parent | eafe6ee01108cbe0f5ddd17f03f5c5128a158967 (diff) |
added automatic language server stuff in neovim
Diffstat (limited to 'home-config/nvim')
-rw-r--r-- | home-config/nvim/config/init.vim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/home-config/nvim/config/init.vim b/home-config/nvim/config/init.vim index d3e467b..e30572a 100644 --- a/home-config/nvim/config/init.vim +++ b/home-config/nvim/config/init.vim | |||
@@ -24,6 +24,8 @@ Plug 'nvim-tree/nvim-web-devicons' | |||
24 | Plug 'ms-jpq/coq_nvim', {'branch':'coq'} | 24 | Plug 'ms-jpq/coq_nvim', {'branch':'coq'} |
25 | Plug 'ms-jpq/coq.artifacts', {'branch':'artifacts'} | 25 | Plug 'ms-jpq/coq.artifacts', {'branch':'artifacts'} |
26 | Plug 'williamboman/mason.nvim' | 26 | Plug 'williamboman/mason.nvim' |
27 | Plug 'williamboman/mason-lspconfig.nvim' | ||
28 | Plug 'neovim/nvim-lspconfig' | ||
27 | Plug 'nvim-orgmode/orgmode' | 29 | Plug 'nvim-orgmode/orgmode' |
28 | call plug#end() | 30 | call plug#end() |
29 | 31 | ||
@@ -39,6 +41,14 @@ require('lualine').setup() | |||
39 | require('coq') | 41 | require('coq') |
40 | require('orgmode').setup_ts_grammar() | 42 | require('orgmode').setup_ts_grammar() |
41 | require("mason").setup() | 43 | require("mason").setup() |
44 | require("mason-lspconfig").setup() | ||
45 | |||
46 | require("mason-lspconfig").setup_handlers { | ||
47 | function (server_name) | ||
48 | require("lspconfig")[server_name].setup {} | ||
49 | end, | ||
50 | } | ||
51 | |||
42 | require('nvim-treesitter.configs').setup { | 52 | require('nvim-treesitter.configs').setup { |
43 | highlight = { | 53 | highlight = { |
44 | enable = true, | 54 | enable = true, |