mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-30 22:57:55 +00:00
nixvimConfigs/fiesta: update LSP and Treesitter setup
This commit is contained in:
parent
af94d911c8
commit
37b26b35df
@ -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;
|
||||
|
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user