update format
This commit is contained in:
parent
3f59accc89
commit
6388da3064
12 changed files with 109 additions and 79 deletions
|
|
@ -40,17 +40,8 @@ function M.get()
|
|||
})
|
||||
end, desc = "Code Action", mode = { "n", "v" }, has = "codeAction" },
|
||||
{
|
||||
"<leader>cA",
|
||||
function()
|
||||
vim.lsp.buf.code_action({
|
||||
context = {
|
||||
only = {
|
||||
"refactor",
|
||||
},
|
||||
diagnostics = {},
|
||||
},
|
||||
})
|
||||
end,
|
||||
"<leader>cQ",
|
||||
vim.lsp.buf.code_action,
|
||||
desc = "Source Action",
|
||||
has = "codeAction",
|
||||
}
|
||||
|
|
|
|||
|
|
@ -156,7 +156,7 @@ return {
|
|||
require("lazyvim.plugins.lsp.format").autoformat = opts.autoformat
|
||||
-- setup formatting and keymaps
|
||||
require("lazyvim.util").on_attach(function(client, buffer)
|
||||
require("lazyvim.plugins.lsp.format").on_attach(client, buffer)
|
||||
require("lazyvim.plugins.lsp.format").setup(opts)
|
||||
require("config.lsp-keymap").on_attach(client, buffer)
|
||||
end)
|
||||
|
||||
|
|
|
|||
|
|
@ -209,4 +209,7 @@ return {
|
|||
"f-person/git-blame.nvim",
|
||||
lazy = true,
|
||||
},
|
||||
{
|
||||
"mg979/vim-visual-multi",
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue