1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2024-12-22 23:08:01 +00:00

[neovim] update deprecated dirctives

This commit is contained in:
Daniel Carrillo 2022-10-02 11:18:19 +02:00
parent fb863f0359
commit 728fbdc355
Signed by: dcarrillo
GPG Key ID: E4CD5C09DAED6E16
2 changed files with 4 additions and 4 deletions

View File

@ -60,7 +60,7 @@ local function lsp_keymaps(bufnr)
keymap(bufnr, "n", "gI", "<cmd>lua vim.lsp.buf.implementation()<CR>", opts) keymap(bufnr, "n", "gI", "<cmd>lua vim.lsp.buf.implementation()<CR>", opts)
keymap(bufnr, "n", "gr", "<cmd>lua vim.lsp.buf.references()<CR>", opts) keymap(bufnr, "n", "gr", "<cmd>lua vim.lsp.buf.references()<CR>", opts)
keymap(bufnr, "n", "gl", "<cmd>lua vim.diagnostic.open_float()<CR>", opts) keymap(bufnr, "n", "gl", "<cmd>lua vim.diagnostic.open_float()<CR>", opts)
keymap(bufnr, "n", "<leader>lf", "<cmd>lua vim.lsp.buf.formatting()<cr>", opts) keymap(bufnr, "n", "<leader>lf", "<cmd>lua vim.lsp.buf.format{ async=true }<cr>", opts)
-- keymap(bufnr, "n", "<leader>li", "<cmd>LspInfo<cr>", opts) -- keymap(bufnr, "n", "<leader>li", "<cmd>LspInfo<cr>", opts)
-- keymap(bufnr, "n", "<leader>lI", "<cmd>LspInstallInfo<cr>", opts) -- keymap(bufnr, "n", "<leader>lI", "<cmd>LspInstallInfo<cr>", opts)
keymap(bufnr, "n", "<leader>la", "<cmd>lua vim.lsp.buf.code_action()<cr>", opts) keymap(bufnr, "n", "<leader>la", "<cmd>lua vim.lsp.buf.code_action()<cr>", opts)
@ -73,11 +73,11 @@ end
M.on_attach = function(client, bufnr) M.on_attach = function(client, bufnr)
if client.name == "tsserver" then if client.name == "tsserver" then
client.resolved_capabilities.document_formatting = false client.server_capabilities.document_formatting = false
end end
if client.name == "sumneko_lua" then if client.name == "sumneko_lua" then
client.resolved_capabilities.document_formatting = false client.server_capabilities.document_formatting = false
end end
lsp_keymaps(bufnr) lsp_keymaps(bufnr)

View File

@ -42,4 +42,4 @@ vim.opt.fillchars.eob = " "
vim.opt.shortmess:append("c") vim.opt.shortmess:append("c")
vim.opt.whichwrap:append("<,>,[,],h,l") vim.opt.whichwrap:append("<,>,[,],h,l")
vim.opt.iskeyword:append("-") vim.opt.iskeyword:append("-")
vim.opt.cmdheight=0 -- experimental vim.opt.cmdheight = 0 -- experimental