aboutsummaryrefslogtreecommitdiffhomepage
path: root/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua17
1 files changed, 9 insertions, 8 deletions
diff --git a/init.lua b/init.lua
index 3e97e9b..1ee00e4 100644
--- a/init.lua
+++ b/init.lua
@@ -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
227vim.keymap.set('n', ':W', "SudaWrite %<CR>") 227vim.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)
400end 399end
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.
407local servers = { 408local 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 = {