add nix langauge server setup to nvim

This commit is contained in:
Sakooooo 2024-12-26 15:26:20 +04:00
parent 81635e90e3
commit 4791b2187f
Signed by: sako
GPG key ID: 3FD715D87D7725E0

View file

@ -2,26 +2,6 @@
let
sources = import ./sources.nix { inherit pkgs; };
cfg = config.modules.dev.editors.nvim;
configModule = {
# custom options
# options = { ... };
config = {
vim = {
theme.enable = true;
lazy.plugins = {
vim-wakatime = {
package = sources.vim-wakatime;
lazy = false;
};
};
};
};
};
customNeovim = inputs.nvf.lib.neovimConfiguration {
inherit pkgs;
modules = [ configModule ];
};
in {
imports = [ inputs.nvf.nixosModules.default ];
options.modules.dev.editors.nvim = { enable = lib.mkEnableOption false; };
@ -29,8 +9,6 @@ in {
config = lib.mkIf cfg.enable {
# because yes
# users.users.sako.packages = with pkgs; [
# # neovim
# customNeovim.neovim
# # flakes
# direnv
# # vscode like git
@ -45,6 +23,13 @@ in {
# };
vim = {
lsp = { enable = true; };
languages = {
enableLSP = true;
nix = {
enable = true;
format.enable = true;
};
};
utility = { vim-wakatime.enable = true; };
};
};