a few more changes
This commit is contained in:
parent
1b5fdb9724
commit
f65af9d8c4
3 changed files with 6 additions and 2 deletions
2
init.lua
2
init.lua
|
@ -26,3 +26,5 @@ require "user.lsp"
|
||||||
require "user.exrc"
|
require "user.exrc"
|
||||||
--require "user.rust-tools"
|
--require "user.rust-tools"
|
||||||
require "user.vimspector"
|
require "user.vimspector"
|
||||||
|
|
||||||
|
require "user.neovide"
|
||||||
|
|
|
@ -102,5 +102,6 @@ keymap("n", "<leader>di", "<Plug>VimspectorBalloonEval", opts)
|
||||||
--keymap("n", "<F17>", "<cmd>lua require'dap'.terminate()<cr>", opts)
|
--keymap("n", "<F17>", "<cmd>lua require'dap'.terminate()<cr>", opts)
|
||||||
|
|
||||||
|
|
||||||
keymap("n", "<leader>bf", vim.lsp.buf.format, opts) -- Shift+F5
|
keymap("n", "<leader>lf", vim.lsp.buf.format, opts) -- Shift+F5
|
||||||
keymap("v", "<leader>bf", vim.lsp.buf.format, opts) -- Shift+F5
|
keymap("v", "<leader>lf", "<esc><cmd>'<,'>lua vim.lsp.buf.format()<cr>", opts) -- Shift+F5
|
||||||
|
keymap("x", "<leader>lf", "<esc><cmd>'<,'>lua vim.lsp.buf.format()<cr>", opts) -- Shift+F5
|
||||||
|
|
|
@ -8,6 +8,7 @@ local servers = {
|
||||||
"jsonls",
|
"jsonls",
|
||||||
"yamlls",
|
"yamlls",
|
||||||
"rust_analyzer",
|
"rust_analyzer",
|
||||||
|
"gopls"
|
||||||
}
|
}
|
||||||
|
|
||||||
local settings = {
|
local settings = {
|
||||||
|
|
Loading…
Reference in a new issue