diff options
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 17 |
1 files changed, 9 insertions, 8 deletions
@@ -224,8 +224,7 @@ vim.o.completeopt = 'menuone,noselect' | |||
224 | 224 | ||
225 | -- Use suda.vim to run sudo, or terminal prompt fails | 225 | -- Use suda.vim to run sudo, or terminal prompt fails |
226 | -- See more details at https://github.com/neovim/neovim/issues/1716 | 226 | -- See more details at https://github.com/neovim/neovim/issues/1716 |
227 | vim.keymap.set('n', ':W', "SudaWrite %<CR>") | 227 | vim.cmd("command! W execute 'SudaWrite %'") |
228 | |||
229 | 228 | ||
230 | -- [[ Highlight on yank ]] | 229 | -- [[ Highlight on yank ]] |
231 | -- See `:help vim.highlight.on_yank()` | 230 | -- See `:help vim.highlight.on_yank()` |
@@ -400,16 +399,18 @@ local on_attach = function(_, bufnr) | |||
400 | end | 399 | end |
401 | 400 | ||
402 | -- Enable the following language servers | 401 | -- Enable the following language servers |
403 | -- Feel free to add/remove any LSPs that you want here. They will automatically be installed. | 402 | -- Read Doc page for more configuration: |
403 | -- https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md | ||
404 | -- Feel free to add/remove any LSPs that you want here. They will automatically be installed. | ||
404 | -- | 405 | -- |
405 | -- Add any additional override configuration in the following tables. They will be passed to | 406 | -- Add any additional override configuration in the following tables. They will be passed to |
406 | -- the `settings` field of the server config. You must look up that documentation yourself. | 407 | -- the `settings` field of the server config. You must look up that documentation yourself. |
407 | local servers = { | 408 | local servers = { |
408 | -- clangd = {}, | 409 | -- clangd = {}, |
409 | -- gopls = {}, | 410 | -- gopls = {}, |
410 | -- pyright = {}, | 411 | pyright = {}, |
411 | -- rust_analyzer = {}, | 412 | rust_analyzer = {}, |
412 | -- tsserver = {}, | 413 | tsserver = {}, |
413 | 414 | ||
414 | lua_ls = { | 415 | lua_ls = { |
415 | Lua = { | 416 | Lua = { |