bunch of small tweaks + stylua fmt

This commit is contained in:
2026-08-11 00:30:31 +02:00
parent 88948c0033
commit 86f4bc2856
8 changed files with 306 additions and 269 deletions
+7 -6
View File
@@ -1,15 +1,16 @@
local options = {
formatters_by_ft = {
lua = { "stylua" },
-- lua = { "stylua" },
-- css = { "prettier" },
-- html = { "prettier" },
nix = { "nixfmt" },
},
-- format_on_save = {
-- -- These options will be passed to conform.format()
-- timeout_ms = 500,
-- lsp_fallback = true,
-- },
format_on_save = {
-- These options will be passed to conform.format()
timeout_ms = 500,
lsp_fallback = true,
},
}
return options
+14 -12
View File
@@ -19,6 +19,7 @@ require("mason-tool-installer").setup({
"isort",
"mypy",
"pylint",
"slint-lsp",
},
})
@@ -42,7 +43,7 @@ vim.lsp.config("lua_ls", {
Lua = {
workspace = {
library = {
"/usr/share/hypr/stubs",
"/run/current-system/sw/share/hypr/stubs",
},
},
},
@@ -63,10 +64,11 @@ vim.lsp.config("nixd", {
},
options = {
nixos = {
expr = '(builtins.getFlake "/home/user/nix-config").nixosConfigurations.nixos.options',
expr = '(builtins.getFlake "/home/user/nix-config").nixosConfigurations.desktop.options',
},
home_manager = {
expr = '(builtins.getFlake "/home/user/nix-config").nixosConfigurations.nixos.options.home-manager.users.type.getSubOptions []',
expr =
'(builtins.getFlake "/home/user/nix-config").nixosConfigurations.desktop.options.home-manager.users.type.getSubOptions []',
},
},
},
@@ -75,16 +77,16 @@ vim.lsp.config("nixd", {
vim.lsp.config("basedpyright", {
cmd = { "/run/current-system/sw/bin/basedpyright-langserver", "--stdio" },
settings = {
pyright = {
disableOrganizeImports = true
},
basedpyright = {
analysis = {
typeCheckingMode = "standard"
}
}
settings = {
pyright = {
disableOrganizeImports = true
},
basedpyright = {
analysis = {
typeCheckingMode = "standard"
}
}
}
})
vim.filetype.add({