26 lines
590 B
Nix
26 lines
590 B
Nix
|
|
{pkgs, lib, ...}:let
|
||
|
|
inherit (lib.nixvim.lua) toLuaObject;
|
||
|
|
|
||
|
|
options = {
|
||
|
|
features = {
|
||
|
|
codelens = true; # enable/disable codelens refresh on start
|
||
|
|
inlay_hints = false; # enable/disable inlay hints on start
|
||
|
|
semantic_tokens = true; # enable/disable semantic token highlighting
|
||
|
|
};
|
||
|
|
formatting = {
|
||
|
|
format_on_save = {
|
||
|
|
enabled = true;
|
||
|
|
};
|
||
|
|
};
|
||
|
|
servers = [
|
||
|
|
"bash-language-server"
|
||
|
|
];
|
||
|
|
};
|
||
|
|
in {
|
||
|
|
extraPlugins = [pkgs.vimPlugins.astrolsp];
|
||
|
|
|
||
|
|
extraConfigLua = /*lua*/ ''
|
||
|
|
require('astroui').setup(${toLuaObject options});
|
||
|
|
'';
|
||
|
|
}
|