Compare commits

...

2 Commits

@ -42,6 +42,7 @@ local disabled_ft = {
'windline', 'windline',
'notify', 'notify',
'nofile', 'nofile',
'help',
'', '',
} }
-- local cap = vim.lsp.protocol.make_client_capabilities() -- local cap = vim.lsp.protocol.make_client_capabilities()

@ -216,6 +216,7 @@ local function set_mapping(lsp_attach_info)
if value.desc then if value.desc then
opts.desc = value.desc opts.desc = value.desc
end end
opts.buffer = bufnr
vim.keymap.set(value.mode or 'n', value.key, value.func, opts) vim.keymap.set(value.mode or 'n', value.key, value.func, opts)
if string.find(value.desc, 'range format') and value.mode == 'v' then if string.find(value.desc, 'range format') and value.mode == 'v' then
rfmtkey = value.key rfmtkey = value.key

Loading…
Cancel
Save