Skip to content

Commit

Permalink
feat:(shell): add useful treesitter grammars and lsp configs
Browse files Browse the repository at this point in the history
  • Loading branch information
zakuciael committed Jan 1, 2025
1 parent 088e15c commit c6ffdb6
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 1 deletion.
49 changes: 48 additions & 1 deletion configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -201,20 +201,67 @@ with lib.my;
neovim = {
enable = true;
lspPackages = with pkgs; [
# Common
prettierd

# Lua
lua-language-server
stylua

# JSON
nodePackages.vscode-json-languageserver

# YAML
yaml-language-server
actionlint

# Nix
deadnix
statix
nixd
inputs.nixfmt.default
nixfmt-rfc-style
];
treesitterGrammars = [
"lua"
"luap"
"nix"
"yaml"
"bash"
"typescript"
"javascript"
"jq"
"css"
"json"
"jsonc"
"json5"
"just"
"dockerfile"
"editorconfig"
"gitignore"
"go"
"graphql"
"hcl"
"helm"
"hyprlang"
"html"
"ini"
"java"
"jsdoc"
"markdown"
"markdown_inline"
"make"
"nginx"
"proto"
"python"
"regex"
"rust"
"scss"
"sql"
"terraform"
"tmux"
"tsx"
"udev"
"vim"
];
};
fish = {
Expand Down
2 changes: 2 additions & 0 deletions dotfiles/nvim/lua/community.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ return {
{ import = "astrocommunity.pack.lua" },
{ import = "astrocommunity.diagnostics.trouble-nvim" },
{ import = "astrocommunity.utility.hover-nvim" },
{ import = "astrocommunity.pack.yaml" },
{ import = "astrocommunity.pack.json" },
}
7 changes: 7 additions & 0 deletions dotfiles/nvim/lua/lsp/github-actions.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---@type LazySpec
return {
"jay-babu/mason-null-ls.nvim",
opts = function(_, opts)
opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "actionlint" })
end
}

0 comments on commit c6ffdb6

Please sign in to comment.