Compare commits

...

7 Commits

Author SHA1 Message Date
d84bc8062e Use prettier instead of prettierd
I keep having issues with prettierd not working and prettier works just
fine.
2025-12-05 13:48:28 +01:00
4e3d0500b9 Fixed pnpm setup 2025-12-03 21:32:20 +01:00
38f4c63336 Extra luals settings 2025-11-22 00:29:11 +01:00
434ff26226 Add eslint 2025-11-22 00:29:11 +01:00
af95197cb1 Update lspconfig 2025-11-22 00:29:10 +01:00
c2772d1874 Add vtsls as manual lsp 2025-11-22 00:29:10 +01:00
dd22699549 Switch default branch to main 2025-11-22 00:29:10 +01:00
7 changed files with 36 additions and 15 deletions

View File

@@ -24,7 +24,7 @@
tool = nvimdiff tool = nvimdiff
[init] [init]
defaultBranch = master defaultBranch = main
[rebase] [rebase]
autosquash = true autosquash = true

View File

@@ -25,7 +25,7 @@
"nvim-colorizer.lua": { "branch": "master", "commit": "51cf7c995ed1eb6642aecf19067ee634fa1b6ba2" }, "nvim-colorizer.lua": { "branch": "master", "commit": "51cf7c995ed1eb6642aecf19067ee634fa1b6ba2" },
"nvim-dap": { "branch": "master", "commit": "b0f983507e3702f073bfe1516846e58b56d4e42f" }, "nvim-dap": { "branch": "master", "commit": "b0f983507e3702f073bfe1516846e58b56d4e42f" },
"nvim-dap-virtual-text": { "branch": "master", "commit": "fbdb48c2ed45f4a8293d0d483f7730d24467ccb6" }, "nvim-dap-virtual-text": { "branch": "master", "commit": "fbdb48c2ed45f4a8293d0d483f7730d24467ccb6" },
"nvim-lspconfig": { "branch": "master", "commit": "d89f4891f0720cd2598e4bdd60010d8784b2ac8a" }, "nvim-lspconfig": { "branch": "master", "commit": "ac98db2f9f06a56498ec890a96928774eae412c3" },
"nvim-surround": { "branch": "main", "commit": "a868c256c861044beb9794b4dd126480dcdfbdad" }, "nvim-surround": { "branch": "main", "commit": "a868c256c861044beb9794b4dd126480dcdfbdad" },
"nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" }, "nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" },
"nvim-treesitter-textobjects": { "branch": "master", "commit": "71385f191ec06ffc60e80e6b0c9a9d5daed4824c" }, "nvim-treesitter-textobjects": { "branch": "master", "commit": "71385f191ec06ffc60e80e6b0c9a9d5daed4824c" },

View File

@@ -1,8 +1,23 @@
return { return {
settings = { settings = {
Lua = { Lua = {
workspace = { checkThirdParty = false }, workspace = {
checkThirdParty = false,
library = {
"./definitions",
},
},
telemetry = { enable = false }, telemetry = { enable = false },
type = {
checkTableShape = true,
},
diagnostics = {
neededFileStatus = {
-- ["no-unknown"] = "Opened",
-- ["incomplete-signature-doc"] = "Opened",
-- ["await-in-sync"] = "Opened",
},
},
}, },
}, },
} }

View File

@@ -148,7 +148,10 @@ vim.api.nvim_create_autocmd("LspAttach", {
end, end,
}) })
-- Manually enable rust analyzer, if installed -- Manually enable lsps, if installed
if vim.fn.executable("rust_analyzer") then if vim.fn.executable("rust_analyzer") then
vim.lsp.enable("rust_analyzer") vim.lsp.enable("rust_analyzer")
end end
if vim.fn.executable("vtsls") then
vim.lsp.enable("vtsls")
end

View File

@@ -5,15 +5,15 @@ local formatters_by_ft = {
go = { "goimports" }, go = { "goimports" },
python = { "ruff_organize_imports", "ruff_format" }, python = { "ruff_organize_imports", "ruff_format" },
rust = { "rustfmt" }, rust = { "rustfmt" },
javascript = { "prettierd" }, javascript = { "prettier" },
javascriptreact = { "prettierd" }, javascriptreact = { "prettier" },
typescript = { "prettierd" }, typescript = { "prettier" },
typescriptreact = { "prettierd" }, typescriptreact = { "prettier" },
css = { "prettierd" }, css = { "prettier" },
markdown = { "prettierd" }, markdown = { "prettier" },
yaml = { "prettierd" }, yaml = { "prettier" },
lua = { "stylua" }, lua = { "stylua" },
json = { "prettierd" }, json = { "prettier" },
toml = { "taplo" }, toml = { "taplo" },
-- ["*"] = { "injected" }, -- ["*"] = { "injected" },
["_"] = { "trim_whitespace", "trim_newlines" }, ["_"] = { "trim_whitespace", "trim_newlines" },

View File

@@ -24,8 +24,9 @@ local ensure_installed = {
end, end,
}, },
"ruff", "ruff",
"prettierd", "prettier",
"stylua", "stylua",
"eslint",
} }
--- @module "lazy" --- @module "lazy"

View File

@@ -87,12 +87,14 @@ if (( $+commands[devcontainer] )); then
} }
fi fi
if (( $+commands[pnpm] )); then
export PNPM_HOME="/home/tim/.local/share/pnpm" export PNPM_HOME="/home/tim/.local/share/pnpm"
if [ -d "$PNPM_HOME" ]; then
case ":$PATH:" in case ":$PATH:" in
*":$PNPM_HOME:"*) ;; *":$PNPM_HOME:"*) ;;
*) export PATH="$PNPM_HOME:$PATH" ;; *) export PATH="$PNPM_HOME:$PATH" ;;
esac esac
else
unset PNPM_HOME
fi fi
export FZF_DEFAULT_OPTS='--tmux' export FZF_DEFAULT_OPTS='--tmux'