diff options
author | Hsieh Chin Fan <pham@topo.tw> | 2023-05-07 11:38:13 +0800 |
---|---|---|
committer | Hsieh Chin Fan <pham@topo.tw> | 2023-05-07 11:38:13 +0800 |
commit | 8ae7b7cdd623edd09402da19cacebb23b1538d59 (patch) | |
tree | f663f2fdd2aae13a77007e47f622aee254bd25a0 /init.lua | |
parent | ebafab3dc57976ae1ea8f62c46b54cefcd54903c (diff) |
Update
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 = { |