some typescript settings

This commit is contained in:
Alexander Gehrke 2024-03-22 13:55:51 +01:00
parent 898639c4ea
commit 0dee46da50

View file

@ -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()"