remove omnifunc config, sort lsp servers by name
This commit is contained in:
		
							parent
							
								
									3e2dd9c332
								
							
						
					
					
						commit
						027c0c81f3
					
				
					 1 changed files with 4 additions and 5 deletions
				
			
		|  | @ -1,8 +1,6 @@ | |||
| local on_attach = function(client, bufnr) | ||||
|     local utils = require('utils') | ||||
| 
 | ||||
|     utils.opt("o", "omnifunc", "v:lua.vim.lsp.omnifunc") | ||||
| 
 | ||||
|     -- Mappings. | ||||
|     utils.map("n", "K", "<Cmd>lua vim.lsp.buf.hover()<CR>") | ||||
|     utils.map("n", "<C-k>", "<cmd>lua vim.lsp.buf.signature_help()<CR>") | ||||
|  | @ -47,13 +45,14 @@ capabilities.textDocument.completion.completionItem.snippetSupport = true; | |||
| 
 | ||||
| -- LSPs | ||||
| local servers = { | ||||
|   "clangd", | ||||
|   "gleam", | ||||
|   "lua_ls", | ||||
|   "ocamllsp", | ||||
|   "vimls", | ||||
|   "clangd", | ||||
|   "rnix", | ||||
|   "pyright", | ||||
|   "rnix", | ||||
|   "ruff_lsp", | ||||
|   "vimls", | ||||
| } | ||||
| for _, lsp in ipairs(servers) do | ||||
|     nvim_lsp[lsp].setup {capabilities = capabilities, on_attach = on_attach} | ||||
|  |  | |||
		Reference in a new issue