Compare commits

...

2 Commits

Author SHA1 Message Date
d73cabb72d Merge 2026-03-30 07:51:27 +02:00
889b2c4cca Adding treesitter context 2026-03-30 07:48:32 +02:00

View File

@@ -78,25 +78,26 @@ vim.api.nvim_create_autocmd("FileType", {
-- SECTION: Install packages
vim.pack.add({
"https://github.com/catppuccin/nvim", -- color scheme
"https://github.com/nvim-mini/mini.pick", -- File picker, grep
"https://github.com/nvim-mini/mini.pairs", -- Auto create {}, (), [] - pairs etc.
"https://github.com/nvim-mini/mini.notify", -- Popup notifications
"https://github.com/nvim-mini/mini.completion", -- Autocomplete, needs snippets and icons
"https://github.com/nvim-mini/mini.snippets", -- Snippets
"https://github.com/nvim-mini/mini.icons", -- Icons
"https://github.com/nvim-mini/mini.cursorword", -- Highlight word under cursor
"https://github.com/nvim-mini/mini.hipatterns", -- Highlight todos and rgb colors
"https://github.com/nvim-mini/mini.statusline", -- Statusline at the bottom
"https://github.com/neovim/nvim-lspconfig", -- Language servers
"https://github.com/mason-org/mason.nvim", -- LSP deps installer
"https://github.com/mason-org/mason-lspconfig.nvim", -- Lets you install mason tooling using lsp names
"https://github.com/WhoIsSethDaniel/mason-tool-installer.nvim", -- Automatically install mason tooling
"https://github.com/folke/lazydev.nvim", -- Automatically resolve vim api paths.
"https://github.com/folke/which-key.nvim", -- Shortcut hints (bar at the bottom when pressing space)
"https://github.com/nvim-lua/plenary.nvim", -- Helper lua functions, dep of todo-comments.
"https://github.com/nvim-treesitter/nvim-treesitter", -- Syntax highlighting
"https://github.com/stevearc/oil.nvim", -- File explorer
'https://github.com/catppuccin/nvim', -- color scheme
'https://github.com/nvim-mini/mini.pick', -- File picker, grep
'https://github.com/nvim-mini/mini.pairs', -- Auto create {}, (), [] - pairs etc.
'https://github.com/nvim-mini/mini.notify', -- Popup notifications
'https://github.com/nvim-mini/mini.completion', -- Autocomplete, needs snippets and icons
'https://github.com/nvim-mini/mini.snippets', -- Snippets
'https://github.com/nvim-mini/mini.icons', -- Icons
'https://github.com/nvim-mini/mini.cursorword', -- Highlight word under cursor
'https://github.com/nvim-mini/mini.hipatterns', -- Highlight todos and rgb colors
'https://github.com/nvim-mini/mini.statusline', -- Statusline at the bottom
'https://github.com/neovim/nvim-lspconfig', -- Language servers
'https://github.com/mason-org/mason.nvim', -- LSP deps installer
'https://github.com/mason-org/mason-lspconfig.nvim', -- Lets you install mason tooling using lsp names
'https://github.com/WhoIsSethDaniel/mason-tool-installer.nvim', -- Automatically install mason tooling
'https://github.com/folke/lazydev.nvim', -- Automatically resolve vim api paths.
'https://github.com/folke/which-key.nvim', -- Shortcut hints (bar at the bottom when pressing space)
'https://github.com/nvim-lua/plenary.nvim', -- Helper lua functions, dep of todo-comments.
'https://github.com/nvim-treesitter/nvim-treesitter', -- Syntax highlighting
'https://github.com/nvim-treesitter/nvim-treesitter-context', -- Show sticky headers when looking at nested structures
'https://github.com/stevearc/oil.nvim', -- File explorer
"https://github.com/folke/snacks.nvim", -- Dep for claudecode
"https://github.com/coder/claudecode.nvim", -- Claude code
})
@@ -147,9 +148,12 @@ require("claudecode").setup()
require("nvim-treesitter").setup({
auto_install = true,
})
local vue_language_server_path = vim.fn.stdpath("data")
.. "/mason/packages/vue-language-server/node_modules/@vue/language-server"
local tsserver_filetypes = { "typescript", "javascript", "javascriptreact", "typescriptreact", "vue" }
require('treesitter-context').setup({
enable = true
})
local vue_language_server_path = vim.fn.stdpath('data') ..
"/mason/packages/vue-language-server/node_modules/@vue/language-server"
local tsserver_filetypes = { 'typescript', 'javascript', 'javascriptreact', 'typescriptreact', 'vue' }
local vue_plugin = {
name = "@vue/typescript-plugin",
location = vue_language_server_path,