nixvimConfigs/fiesta: update LSP and Treesitter setup

This commit is contained in:
Gabriel Arazas 2025-01-21 13:37:11 +08:00
parent af94d911c8
commit 37b26b35df
No known key found for this signature in database
GPG Key ID: 62104B43D00AA360
2 changed files with 14 additions and 24 deletions

View File

@ -1,4 +1,4 @@
{ config, lib, ... }:
{ config, lib, helpers, ... }:
let
nixvimConfig = config.nixvimConfigs.fiesta;
@ -15,6 +15,19 @@ in
};
config = lib.mkIf cfg.enable {
keymaps = [
{
mode = [ "n" ];
key = "<leader>Li";
options.desc = "Toggle inlay hints";
action = helpers.mkRaw ''
function()
vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled())
end
'';
}
];
plugins.lsp = {
enable = true;
inlayHints = true;

View File

@ -18,29 +18,6 @@ in
nixGrammars = true;
nixvimInjections = true;
# We'll just use the common languages out of the bat.
grammarPackages = with config.plugins.treesitter.package.builtGrammars; [
bash
c
cpp
css
dockerfile
go
graphql
html
http
javascript
json
json5
lua
nix
rust
toml
tsx
typescript
yaml
];
# Enable all of its useful features.
folding = true;
settings = {