Compare commits
No commits in common. "989020e20f361cd8993a00c5866fc438642fa939" and "7e6d4ae3c0abbf76d2bac5e85ce9766e172f4b98" have entirely different histories.
989020e20f
...
7e6d4ae3c0
16
lua/lsp.lua
16
lua/lsp.lua
@ -15,16 +15,7 @@ local on_attach = function(_, bufnr)
|
||||
end
|
||||
|
||||
nmap('<leader>rn', vim.lsp.buf.rename, '[R]e[n]ame')
|
||||
nmap('<leader>c', vim.lsp.buf.code_action, '[C]ode action') -- NOTE: to see if ca is needed
|
||||
nmap('<leader>f', function() -- https://stackoverflow.com/a/74303272
|
||||
vim.lsp.buf.code_action({
|
||||
filter = function(a)
|
||||
return a.isPreferred
|
||||
end,
|
||||
apply = true
|
||||
})
|
||||
end, 'code action: [F]ix'
|
||||
)
|
||||
nmap('<leader>ca', vim.lsp.buf.code_action, '[C]ode [A]ction')
|
||||
|
||||
nmap('gd', require('telescope.builtin').lsp_definitions, '[G]oto [D]efinition')
|
||||
nmap('gr', require('telescope.builtin').lsp_references, '[G]oto [R]eferences')
|
||||
@ -53,8 +44,8 @@ end
|
||||
|
||||
-- document existing key chains
|
||||
require('which-key').add {
|
||||
-- { "<leader>c", group = "[C]ode" },
|
||||
-- { "<leader>c_", hidden = true },
|
||||
{ "<leader>c", group = "[C]ode" },
|
||||
{ "<leader>c_", hidden = true },
|
||||
{ "<leader>d", group = "[D]ocument" },
|
||||
{ "<leader>d_", hidden = true },
|
||||
{ "<leader>g", group = "[G]it" },
|
||||
@ -96,7 +87,6 @@ local servers = {
|
||||
pyright = {},
|
||||
-- rust_analyzer = {},
|
||||
ts_ls = {},
|
||||
eslint = {},
|
||||
-- html = { filetypes = { 'html', 'twig', 'hbs'} },
|
||||
texlab = {},
|
||||
ltex = {
|
||||
|
Loading…
Reference in New Issue
Block a user