fix taplo config and change goto keybindings from <> to «»
This commit is contained in:
parent
acdaa3bbaa
commit
7ced740381
4 changed files with 8 additions and 7 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue