Compare commits

..

No commits in common. "989020e20f361cd8993a00c5866fc438642fa939" and "7e6d4ae3c0abbf76d2bac5e85ce9766e172f4b98" have entirely different histories.

View File

@ -15,16 +15,7 @@ local on_attach = function(_, bufnr)
end end
nmap('<leader>rn', vim.lsp.buf.rename, '[R]e[n]ame') 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>ca', vim.lsp.buf.code_action, '[C]ode [A]ction')
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('gd', require('telescope.builtin').lsp_definitions, '[G]oto [D]efinition') nmap('gd', require('telescope.builtin').lsp_definitions, '[G]oto [D]efinition')
nmap('gr', require('telescope.builtin').lsp_references, '[G]oto [R]eferences') nmap('gr', require('telescope.builtin').lsp_references, '[G]oto [R]eferences')
@ -53,8 +44,8 @@ end
-- document existing key chains -- document existing key chains
require('which-key').add { require('which-key').add {
-- { "<leader>c", group = "[C]ode" }, { "<leader>c", group = "[C]ode" },
-- { "<leader>c_", hidden = true }, { "<leader>c_", hidden = true },
{ "<leader>d", group = "[D]ocument" }, { "<leader>d", group = "[D]ocument" },
{ "<leader>d_", hidden = true }, { "<leader>d_", hidden = true },
{ "<leader>g", group = "[G]it" }, { "<leader>g", group = "[G]it" },
@ -96,7 +87,6 @@ local servers = {
pyright = {}, pyright = {},
-- rust_analyzer = {}, -- rust_analyzer = {},
ts_ls = {}, ts_ls = {},
eslint = {},
-- html = { filetypes = { 'html', 'twig', 'hbs'} }, -- html = { filetypes = { 'html', 'twig', 'hbs'} },
texlab = {}, texlab = {},
ltex = { ltex = {