finally added nix lsp and changed indentation for nix and lua :3 also added haskell bc dea <3

This commit is contained in:
foxora 2026-02-14 20:09:02 +00:00
parent 88c4057aa5
commit efb35f75d4
5 changed files with 40 additions and 6 deletions

15
flake.lock generated
View file

@ -156,14 +156,17 @@
]
},
"locked": {
"lastModified": 1771048427,
"narHash": "sha256-pGqtZ6LH3hcmtSiCy8bMnRxkBBT0CU18pIHlEm9yCs4=",
"path": "/home/me/cry/mk/Cerulean",
"type": "path"
"lastModified": 1771048834,
"narHash": "sha256-rkhrNJIjCQeABf0zgWZvz4Rb99TJvK+ioOmgy3tIOMs=",
"owner": "emilelcb",
"repo": "Cerulean",
"rev": "f329d48223d8addd340f14c9c653960544b3ce2c",
"type": "github"
},
"original": {
"path": "/home/me/cry/mk/Cerulean",
"type": "path"
"owner": "emilelcb",
"repo": "Cerulean",
"type": "github"
}
},
"crane": {

View file

@ -0,0 +1,17 @@
vim.api.nvim_create_autocmd("FileType", {
pattern = "lua",
callback = function()
vim.opt_local.shiftwidth = 2
vim.opt_local.tabstop = 2
vim.opt_local.expandtab = true
end,
})
vim.api.nvim_create_autocmd("FileType", {
pattern = "nix",
callback = function()
vim.opt_local.shiftwidth = 2
vim.opt_local.tabstop = 2
vim.opt_local.expandtab = true
end,
})

View file

@ -2,4 +2,5 @@ require("lze").load {
{ import = "lsp.completion", },
}
require("lsp.indentation")
require("lsp.lsp")

View file

@ -21,6 +21,10 @@ servers.lua_ls = {
},
}
servers.nil_ls = {
settings = {},
}
local rust_analyzer_cmd = os.getenv("RUST_ANALYZER_CMD")
servers.rust_analyzer = {
cmd = { rust_analyzer_cmd },
@ -55,6 +59,10 @@ servers.gleam = {
settings = {},
}
servers.hls = {
settings = {},
}
local java_home = os.getenv("JAVA_HOME")
servers.jdtls = {
settings = {

View file

@ -75,6 +75,10 @@ in {
gleam = with pkgs; [
gleam
];
haskell = with pkgs; [
haskell-language-server
ormolu
];
java = with pkgs; [
jdt-language-server
javaPackages.compiler.openjdk17
@ -218,6 +222,7 @@ in {
zig = true;
elixir = true;
gleam = true;
haskell = true;
java = true;
};
};