fixed conform hopefully

This commit is contained in:
2026-06-28 13:54:09 +01:00
parent 45739fc4cf
commit 447dd9c22f
2 changed files with 28 additions and 1 deletions

View File

@@ -12,7 +12,7 @@ require("conform").setup({
html = { "prettier" }, html = { "prettier" },
svelte = { "prettier" }, svelte = { "prettier" },
python = { "black" }, python = { "black" },
nix = { "nixfmt" }, nix = { "alejandra" },
css = { "prettier" }, css = { "prettier" },
rust = { "rustfmt" }, rust = { "rustfmt" },
}, },

View File

@@ -4,6 +4,32 @@ vim.pack.add({
{ src = "https://github.com/saghen/blink.lib", name = "blink-lib" }, { src = "https://github.com/saghen/blink.lib", name = "blink-lib" },
}) })
local hostname = vim.uv.os_gethostname()
local lowerHostname = string.lower(hostname)
vim.lsp.config("nixd", {
cmd = { "nixd" },
filetypes = { "nix" },
root_markers = { "flake.nix", ".git" },
settings = {
nixd = {
nixpkgs = {
expr = "import <nixpkgs> { }",
},
formatting = {
command = { "alejandra" },
},
options = {
nixos = {
expr = '(builtins.getFlake "~/.dotfiles/.nixos").nixosConfigurations.'
.. lowerHostname
.. ".options",
},
},
},
},
})
vim.lsp.config("lua_ls", { vim.lsp.config("lua_ls", {
settings = { settings = {
Lua = { Lua = {
@@ -43,6 +69,7 @@ require("blink.cmp").setup({
trigger = { trigger = {
show_on_insert = true, show_on_insert = true,
show_on_trigger_character = true, show_on_trigger_character = true,
show_on_keyword = true,
show_on_backspace = true, show_on_backspace = true,
}, },
list = { list = {