some typescript settings
This commit is contained in:
parent
898639c4ea
commit
0dee46da50
|
@ -1,3 +1,5 @@
|
||||||
|
vim.o.textwidth = 120
|
||||||
|
|
||||||
vim.keymap.set("n", "<leader>o",
|
vim.keymap.set("n", "<leader>o",
|
||||||
function() vim.lsp.buf.execute_command({ command = "_typescript.organizeImports", arguments = { vim.fn.expand("%:p") } }) end,
|
function() vim.lsp.buf.execute_command({ command = "_typescript.organizeImports", arguments = { vim.fn.expand("%:p") } }) end,
|
||||||
{ desc = "Organize imports" }
|
{ desc = "Organize imports" }
|
||||||
|
@ -58,3 +60,6 @@ vim.api.nvim_create_autocmd("LspAttach", {
|
||||||
{ buffer = true })
|
{ buffer = true })
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
|
||||||
|
vim.o.foldmethod = "expr"
|
||||||
|
vim.o.foldexpr = "nvim_treesitter#foldexpr()"
|
||||||
|
|
Loading…
Reference in a new issue