neovim 0.12 update

This commit is contained in:
RafayAhmad7548 2026-04-14 05:48:42 +05:00
parent d776924ffc
commit 2e6e11b86d
Signed by: RafayAhmad
SSH key fingerprint: SHA256:WURX8viobA1uawb4dWM3LqYrY+XPcZcXhAXAlrYdhtE
8 changed files with 83 additions and 72 deletions

View file

@ -55,7 +55,10 @@ return {
{
'L3MON4D3/LuaSnip',
version = 'v2.*',
build = 'make install_jsregexp'
build = 'make install_jsregexp',
config = function ()
require('luasnip.loaders.from_snipmate').lazy_load({ paths = '~/.config/nvim/snippets' })
end
},
'folke/lazydev.nvim',
},

View file

@ -1,43 +1,34 @@
return {
'nvim-treesitter/nvim-treesitter',
build = ':TSUpdate',
main = 'nvim-treesitter.configs', -- Sets main module to use for opts
opts = {
ensure_installed = {
'bash',
'c',
'cpp',
'diff',
'html',
'css',
'lua',
'luadoc',
'markdown',
'markdown_inline',
'query',
'vim',
'vimdoc',
'rust',
'python',
'htmldjango',
'r',
'dart',
'javascript',
'typescript',
'tsx',
'prisma',
'regex',
'kotlin',
'java',
},
auto_install = false,
highlight = { enable = true, },
indent = { enable = true },
},
-- There are additional nvim-treesitter modules that you can use to interact
-- with nvim-treesitter. You should go explore a few and see what interests you:
--
-- - Incremental selection: Included, see `:help nvim-treesitter-incremental-selection-mod`
-- - Show your current context: https://github.com/nvim-treesitter/nvim-treesitter-context
-- - Treesitter + textobjects: https://github.com/nvim-treesitter/nvim-treesitter-textobjects
'nvim-treesitter/nvim-treesitter',
build = ':TSUpdate',
config = function()
require('nvim-treesitter').install({
'bash',
'c',
'cpp',
'diff',
'html',
'css',
'javascript',
'typescript',
'tsx',
'lua',
'luadoc',
'markdown',
'markdown_inline',
'query',
'vim',
'vimdoc',
'rust',
'python',
'htmldjango',
'r',
'dart',
'prisma',
'regex',
'kotlin',
'java',
'http',
})
end,
}

View file

@ -1,3 +1,10 @@
vim.api.nvim_create_autocmd('FileType', {
pattern = { 'json' },
callback = function()
vim.api.nvim_set_option_value('formatprg', 'jq', { scope = 'local' })
end,
})
vim.g.rest_nvim = {
ui = {
keybinds = {
@ -7,12 +14,12 @@ vim.g.rest_nvim = {
},
}
return {
"rest-nvim/rest.nvim",
'rest-nvim/rest.nvim',
dependencies = {
"nvim-treesitter/nvim-treesitter",
'nvim-treesitter/nvim-treesitter',
opts = function (_, opts)
opts.ensure_installed = opts.ensure_installed or {}
table.insert(opts.ensure_installed, "http")
table.insert(opts.ensure_installed, 'http')
end,
},
}

View file

@ -1,24 +1,25 @@
return {
{
'nvim-lualine/lualine.nvim',
dependencies = { 'nvim-tree/nvim-web-devicons' },
opts = {
options = {
globalstatus = true
}
}
'nvim-lualine/lualine.nvim',
dependencies = { 'nvim-tree/nvim-web-devicons' },
opts = {
options = {
globalstatus = true
}
}
},
{
'catppuccin/nvim',
name = 'catppuccin',
priority = 1000,
opts = {
flavour = 'mocha',
no_italic = true,
},
config = function()
vim.cmd('colorscheme catppuccin')
end
}
'catppuccin/nvim',
name = 'catppuccin',
priority = 1000,
opts = {
flavour = 'mocha',
no_italic = true,
},
config = function()
vim.cmd('colorscheme catppuccin')
end
},
'HiPhish/rainbow-delimiters.nvim',
}