update: nvim: add satysfi tree-sitter
This commit is contained in:
parent
a7c98c7cbb
commit
1ede90b7ec
2 changed files with 19 additions and 0 deletions
|
@ -25,4 +25,8 @@ mkdir -p ~/.config/nvim/lua
|
|||
ln -sf $(pwd)/dotfiles/neovim/lua/lualine_setup.lua ~/.config/nvim/lua/lualine_setup.lua
|
||||
mkdir -p ~/.config/nvim/lua/lspconfig/server_configurations
|
||||
ln -sf $(pwd)/dotfiles/neovim/lua/lspconfig/server_configurations/satysfi_ls.lua ~/.config/nvim/lua/lspconfig/server_configurations/satysfi_ls.lua
|
||||
mkdir -p ~/.config/nvim/after/queries/satysfi
|
||||
curl -o ~/.config/nvim/after/queries/satysfi/highlights.scm https://raw.githubusercontent.com/monaqa/tree-sitter-satysfi/master/queries/highlights.scm
|
||||
curl -o ~/.config/nvim/after/queries/satysfi/indents.scm https://raw.githubusercontent.com/monaqa/tree-sitter-satysfi/master/queries/indents.scm
|
||||
curl -o ~/.config/nvim/after/queries/satysfi/matchup.scm https://raw.githubusercontent.com/monaqa/tree-sitter-satysfi/master/queries/matchup.scm
|
||||
|
||||
|
|
|
@ -119,7 +119,22 @@ require('lualine_setup')
|
|||
-----------------------------------------------------------
|
||||
-- Treesitter
|
||||
-- manually install parsers with `:TSInstall <language>`
|
||||
|
||||
-- satysfi (https://github.com/monaqa/tree-sitter-satysfi)
|
||||
local parser_config = require "nvim-treesitter.parsers".get_parser_configs()
|
||||
parser_config.satysfi = {
|
||||
install_info = {
|
||||
url = "https://github.com/monaqa/tree-sitter-satysfi",
|
||||
files = { "src/parser.c", "src/scanner.c" }
|
||||
},
|
||||
filetype = 'satysfi',
|
||||
}
|
||||
|
||||
-- setup
|
||||
require'nvim-treesitter.configs'.setup {
|
||||
ensure_installed = {
|
||||
'satysfi',
|
||||
},
|
||||
highlight = {
|
||||
enable = true,
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue