Compare commits

..

2 Commits

Author SHA1 Message Date
447dd9c22f fixed conform hopefully 2026-06-28 13:54:09 +01:00
45739fc4cf updated flake 2026-06-28 13:35:44 +01:00
4 changed files with 32 additions and 6 deletions

6
flake.lock generated
View File

@@ -2,11 +2,11 @@
"nodes": { "nodes": {
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1781074563, "lastModified": 1782467914,
"narHash": "sha256-md8WlXOlfnIeHeOScMTTHFyf2d6iaTwPl2apR5EQ3P4=", "narHash": "sha256-pGvFkM8N0xEkIIXDe5YYfbEAvHrk4IxBrjB/x8OomhE=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "9ae611a455b90cf061d8f332b977e387bda8e1ca", "rev": "e73de5be04e0eff4190a1432b946d469c794e7b4",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@@ -20,9 +20,8 @@
ast-grep ast-grep
prettier prettier
black black
nixfmt alejandra
rustfmt rustfmt
nil
python313Packages.python-lsp-server python313Packages.python-lsp-server
typescript-language-server typescript-language-server
tailwindcss-language-server tailwindcss-language-server

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 = {