fixed conform hopefully
This commit is contained in:
@@ -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" },
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -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 = {
|
||||||
|
|||||||
Reference in New Issue
Block a user