fix(neovim): improve formatting setup
This commit is contained in:
parent
c70ecc1dd1
commit
62284ccb57
2 changed files with 42 additions and 62 deletions
|
@ -21,13 +21,7 @@ wk.register({
|
|||
d = { require("telescope.builtin").lsp_document_symbols, "Document symbol" },
|
||||
w = { require("telescope.builtin").lsp_workspace_symbols, "Workspace symbol" },
|
||||
},
|
||||
f = {
|
||||
function()
|
||||
-- TODO switch to `vim.lsp.buf.format` after updating to nvim 0.8
|
||||
vim.lsp.buf.formatting_seq_sync(nil, nil, { "tsserver", "null-ls" })
|
||||
end,
|
||||
"Format file",
|
||||
},
|
||||
f = { LspFormat, "Format file" },
|
||||
a = { vim.lsp.buf.code_action, "Code actions" },
|
||||
r = { vim.lsp.buf.rename, "Rename" },
|
||||
l = { vim.lsp.codelens.run, "Run codelens" },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue