diff --git a/init.lua b/init.lua index 281b26f..a3c01f3 100644 --- a/init.lua +++ b/init.lua @@ -26,3 +26,5 @@ require "user.lsp" require "user.exrc" --require "user.rust-tools" require "user.vimspector" + +require "user.neovide" diff --git a/lua/user/keymaps.lua b/lua/user/keymaps.lua index e1da94c..b8621fa 100644 --- a/lua/user/keymaps.lua +++ b/lua/user/keymaps.lua @@ -102,5 +102,6 @@ keymap("n", "di", "VimspectorBalloonEval", opts) --keymap("n", "", "lua require'dap'.terminate()", opts) -keymap("n", "bf", vim.lsp.buf.format, opts) -- Shift+F5 -keymap("v", "bf", vim.lsp.buf.format, opts) -- Shift+F5 +keymap("n", "lf", vim.lsp.buf.format, opts) -- Shift+F5 +keymap("v", "lf", "'<,'>lua vim.lsp.buf.format()", opts) -- Shift+F5 +keymap("x", "lf", "'<,'>lua vim.lsp.buf.format()", opts) -- Shift+F5 diff --git a/lua/user/lsp/mason.lua b/lua/user/lsp/mason.lua index 097cbcb..c3b9d5d 100644 --- a/lua/user/lsp/mason.lua +++ b/lua/user/lsp/mason.lua @@ -8,6 +8,7 @@ local servers = { "jsonls", "yamlls", "rust_analyzer", + "gopls" } local settings = {