add diffview pluging and tweaked code actions mapping
This commit is contained in:
2
init.lua
2
init.lua
@@ -355,7 +355,7 @@ require('lazy').setup({
|
|||||||
|
|
||||||
-- Execute a code action, usually your cursor needs to be on top of an error
|
-- Execute a code action, usually your cursor needs to be on top of an error
|
||||||
-- or a suggestion from your LSP for this to activate.
|
-- or a suggestion from your LSP for this to activate.
|
||||||
map('<leader>ca', vim.lsp.buf.code_action, '[C]ode [A]ction', { 'n', 'x' })
|
map('<leader>ac', vim.lsp.buf.code_action, 'Code [Ac]tion', { 'n', 'x' })
|
||||||
|
|
||||||
-- WARN: This is not Goto Definition, this is Goto Declaration.
|
-- WARN: This is not Goto Definition, this is Goto Declaration.
|
||||||
-- For example, in C this would take you to the header.
|
-- For example, in C this would take you to the header.
|
||||||
|
|||||||
4
lua/custom/plugins/diffview.lua
Normal file
4
lua/custom/plugins/diffview.lua
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
return {
|
||||||
|
'sindrets/diffview.nvim',
|
||||||
|
cmd = { 'DiffviewOpen', 'DiffviewClose', 'DiffviewToggleFiles', 'DiffviewFocusFiles' },
|
||||||
|
}
|
||||||
@@ -21,6 +21,19 @@ return {
|
|||||||
['\\'] = 'close_window',
|
['\\'] = 'close_window',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
filtered_items = {
|
||||||
|
visible = false,
|
||||||
|
hide_dotfiles = false,
|
||||||
|
hide_gitignored = true,
|
||||||
|
hide_by_name = {
|
||||||
|
'.git',
|
||||||
|
'.DS_Store',
|
||||||
|
},
|
||||||
|
never_show = {},
|
||||||
|
always_show_by_pattern = {
|
||||||
|
'.env*',
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
buffers = {
|
buffers = {
|
||||||
|
|||||||
Reference in New Issue
Block a user