This commit is contained in:
DavidOnTop 2023-12-07 22:04:29 +00:00
parent 926ba239ce
commit ac6ba45b85
No known key found for this signature in database
GPG key ID: FAB914DDC2F180EB
8 changed files with 163 additions and 79 deletions

View file

@ -86,7 +86,16 @@ end
local servers = {
clangd = {},
rust_analyzer = {},
rust_analyzer = {
cargo = {
allFeatures = true,
},
inlayHints = {
closyreCaptureHints = {
enable = true,
},
},
},
-- sumneko_lua = {
-- Lua = {
-- workspace = { checkThirdParty = false },

View file

@ -1,7 +1,7 @@
vim.filetype.add({extension = {wgsl = "wgsl"}})
require"nvim-treesitter.configs".setup {
ensure_installed = { "wgsl", "bash", "cmake", "cpp", "dockerfile", "gitignore", "glsl", "go", "graphql", "html", "java", "javascript", "json5", "kotlin", "markdown", "python", "rasi", "regex", "c", "lua", "rust", "scss", "sql", "sxhkdrc", "toml", "tsx", "typescript", "yaml" },
ensure_installed = { "wgsl", "bash", "cmake", "cpp", "dockerfile", "gitignore", "glsl", "go", "graphql", "html", "java", "javascript", "json5", "kotlin", "markdown", "python", "rasi", "regex", "c", "lua", "rust", "scss", "sql", "sxhkdrc", "toml", "typescript", "yaml" },
sync_install = false,
auto_install = true,
indent = { enable = true, disable = { 'python' } },
@ -17,15 +17,15 @@ require"nvim-treesitter.configs".setup {
node_decremental = "grm",
},
},
rainbow = {
enable = true,
-- list of languages you want to disable the plugin for
disable = {},
-- Which query to use for finding delimiters
query = 'rainbow-parens',
-- Highlight the entire buffer all at once
strategy = require('ts-rainbow').strategy.global,
},
-- rainbow = {
-- enable = true,
-- -- list of languages you want to disable the plugin for
-- disable = {},
-- -- Which query to use for finding delimiters
-- query = 'rainbow-parens',
-- -- Highlight the entire buffer all at once
-- strategy = require('ts-rainbow').strategy.global,
-- },
}
local treesitter_parser_config = require "nvim-treesitter.parsers".get_parser_configs()
@ -37,6 +37,16 @@ treesitter_parser_config.templ = {
},
}
treesitter_parser_config.just = {
install_info = {
url = "https://github.com/IndianBoy42/tree-sitter-just", -- local path or git repo
files = { "src/parser.c", "src/scanner.cc" },
branch = "main",
-- use_makefile = true -- this may be necessary on MacOS (try if you see compiler errors)
},
maintainers = { "@IndianBoy42" },
}
vim.treesitter.language.register('templ', 'templ')
vim.wo.foldmethod = "manual"