new laptop

This commit is contained in:
Franchioping 2026-01-27 16:04:08 +00:00
parent a882fc5d24
commit 87846dc87c
2 changed files with 7 additions and 17 deletions

View File

@ -0,0 +1,2 @@
vim.opt_local.spell = true
vim.opt_local.spelllang = { 'en_us', 'pt_PT' }

View File

@ -738,22 +738,10 @@ require('lazy').setup({
}, },
opts = { opts = {
notify_on_error = false, notify_on_error = false,
format_on_save = function(bufnr) format_on_save = {
-- Disable "format_on_save lsp_fallback" for languages that don't timeout_ms = 5000,
-- have a well standardized coding style. You can add additional lsp_format = true,
-- languages here or re-enable it for the disabled ones. },
local disable_filetypes = { c = false, cpp = false, tex = true }
local lsp_format_opt
if disable_filetypes[vim.bo[bufnr].filetype] then
lsp_format_opt = 'never'
else
lsp_format_opt = 'fallback'
end
return {
timeout_ms = 500,
lsp_format = lsp_format_opt,
}
end,
formatters_by_ft = { formatters_by_ft = {
lua = { 'stylua' }, lua = { 'stylua' },
markdown = { 'markdownlint' }, markdown = { 'markdownlint' },
@ -761,7 +749,7 @@ require('lazy').setup({
c = { 'clang-format' }, c = { 'clang-format' },
cpp = { 'clang-format' }, cpp = { 'clang-format' },
-- Conform can also run multiple formatters sequentially -- Conform can also run multiple formatters sequentially
-- python = { "isort", "black" }, python = { 'isort', 'black' },
-- --
-- You can use 'stop_after_first' to run the first available formatter from the list -- You can use 'stop_after_first' to run the first available formatter from the list
-- javascript = { "prettierd", "prettier", stop_after_first = true }, -- javascript = { "prettierd", "prettier", stop_after_first = true },