fixed conform hopefully
This commit is contained in:
@@ -4,6 +4,32 @@ vim.pack.add({
|
||||
{ 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", {
|
||||
settings = {
|
||||
Lua = {
|
||||
@@ -43,6 +69,7 @@ require("blink.cmp").setup({
|
||||
trigger = {
|
||||
show_on_insert = true,
|
||||
show_on_trigger_character = true,
|
||||
show_on_keyword = true,
|
||||
show_on_backspace = true,
|
||||
},
|
||||
list = {
|
||||
|
||||
Reference in New Issue
Block a user