set dotfiles to new status 21-03-25

This commit is contained in:
2025-03-21 15:31:38 +01:00
parent 8b7f848695
commit ee2a3a74ca
7 changed files with 103 additions and 64 deletions

View File

@@ -6,3 +6,7 @@
vim.opt.listchars = "tab:▸ ,trail:·,nbsp:␣,extends:,precedes:" -- show symbols for whitespace
vim.opt.relativenumber = false -- relative line numbers
vim.opt.scrolloff = 10 -- keep 20 lines above and below the cursor
vim.opt.tabstop = 2
vim.opt.shiftwidth = 2
vim.opt.expandtab = true
vim.opt.smartindent = true

View File

@@ -0,0 +1,31 @@
return {
-- Formatting
{
"stevearc/conform.nvim",
optional = true,
opts = {
formatters_by_ft = {
javascript = { "prettier" },
typescript = { "prettier" },
javascriptreact = { "prettier" },
typescriptreact = { "prettier" },
},
formatters = {
prettier = {
prepend_args = { "--tab-width", "2", "--single-quote", "--trailing-comma", "all" },
},
},
},
},
-- Linting
{
"mfussenegger/nvim-lint",
optional = true,
opts = {
linters_by_ft = {
javascript = { "eslint" },
typescript = { "eslint" },
},
},
},
}