oops
This commit is contained in:
parent
a7f1a8f845
commit
2849687eed
|
@ -210,7 +210,13 @@ in
|
||||||
},
|
},
|
||||||
sections = {
|
sections = {
|
||||||
lualine_a = {'mode'},
|
lualine_a = {'mode'},
|
||||||
lualine_b = { { 'diagnostics', always_visible = true } },
|
lualine_b = { {
|
||||||
|
'diagnostics',
|
||||||
|
always_visible = true,
|
||||||
|
on_click = function(n,b,m)
|
||||||
|
vim.diagnostic.goto_next()
|
||||||
|
end
|
||||||
|
} },
|
||||||
lualine_c = {'filename'},
|
lualine_c = {'filename'},
|
||||||
lualine_x = {'encoding', 'filetype'},
|
lualine_x = {'encoding', 'filetype'},
|
||||||
lualine_y = {'progress'},
|
lualine_y = {'progress'},
|
||||||
|
@ -232,6 +238,12 @@ in
|
||||||
vim.keymap.set('n', 'K', vim.lsp.buf.hover, opts)
|
vim.keymap.set('n', 'K', vim.lsp.buf.hover, opts)
|
||||||
vim.keymap.set('n', '<localleader>r', vim.lsp.buf.rename, opts)
|
vim.keymap.set('n', '<localleader>r', vim.lsp.buf.rename, opts)
|
||||||
vim.keymap.set('n', '<localleader>a', vim.lsp.buf.code_action, opts)
|
vim.keymap.set('n', '<localleader>a', vim.lsp.buf.code_action, opts)
|
||||||
|
vim.keymap.set('n', '<localleader>gd', vim.lsp.buf.definition, opts)
|
||||||
|
vim.keymap.set('n', '<localleader>gi', vim.lsp.buf.implementation, opts)
|
||||||
|
vim.keymap.set('n', '<localleader>gr', vim.lsp.buf.references, opts)
|
||||||
|
vim.keymap.set('n', '<localleader>e', vim.diagnostic.open_float, opts)
|
||||||
|
vim.keymap.set('n', '<localleader>n', vim.diagnostic.goto_next, opts)
|
||||||
|
vim.keymap.set('n', '<localleader>N', vim.diagnostic.goto_prev, opts)
|
||||||
vim.keymap.set('i', '<C-n>', vim.lsp.omnifunc, opts)
|
vim.keymap.set('i', '<C-n>', vim.lsp.omnifunc, opts)
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue
Block a user