fix taplo config and change goto keybindings from <> to «»

This commit is contained in:
Fábio André Damas 2025-03-29 01:53:04 +00:00
parent acdaa3bbaa
commit 7ced740381
4 changed files with 8 additions and 7 deletions

View file

@ -30,9 +30,9 @@ vim.api.nvim_create_autocmd('LspAttach', {
local client = vim.lsp.get_client_by_id(args.data.client_id)
if not client then return end
local LSP_CLIENT_NAMES_FORMAT_ON_SAVE = { "lua_ls", "jdtls" }
local LSP_CLIENT_NAMES_FORMAT_ON_SAVE = { "lua_ls", "jdtls", "gopls", "taplo" }
for _, client_name_autoformat in ipairs(LSP_CLIENT_NAMES_FORMAT_ON_SAVE) do
if client.name == client_name_autoformat then
if client.name == client_name_autoformat and client.server_capabilities.documentFormattingProvider then
-- Format the current buffer on save
vim.api.nvim_create_autocmd('BufWritePre', {
buffer = args.buf,

View file

@ -122,12 +122,12 @@ return {
},
{
">",
"»",
"]",
noremap = false,
},
{
"<",
"«",
"[",
noremap = false,
},