mirror of
https://github.com/pratiktri/dotfiles.git
synced 2026-02-04 08:41:43 +05:30
fix(nvim): Add autopair plugins for formatting lines when autopaired and
cursor goes to next line, deprecated `vim.highlight` to `vim.hl` - fix: replaced deprecated `vim.highlight.on_yank` to `vim.hl.on_yank`
This commit is contained in:
@@ -17,7 +17,7 @@ vim.api.nvim_create_autocmd("TextYankPost", {
|
||||
desc = "Highlight when yanking text",
|
||||
group = vim.api.nvim_create_augroup("highlight-yank", { clear = true }),
|
||||
callback = function()
|
||||
vim.highlight.on_yank({
|
||||
vim.hl.on_yank({
|
||||
higroup = "Visual", -- Highlight group to use
|
||||
timeout = 400, -- Duration in milliseconds
|
||||
on_visual = true, -- Highlight visual selections
|
||||
|
||||
@@ -1,6 +1,14 @@
|
||||
return {
|
||||
{ "tpope/vim-repeat" },
|
||||
|
||||
{
|
||||
"windwp/nvim-autopairs",
|
||||
event = "InsertEnter",
|
||||
config = function()
|
||||
require("nvim-autopairs").setup()
|
||||
end,
|
||||
},
|
||||
|
||||
-- mini.nvim: Collection of various small independent plugins/modules
|
||||
{
|
||||
"echasnovski/mini.nvim",
|
||||
@@ -289,12 +297,6 @@ return {
|
||||
|
||||
-- Treesitter
|
||||
{
|
||||
-- nvim-treesitter provides parsers for individual languages
|
||||
-- Output of these parses are fed to the NVIM's native treesitter(vim.treesitter)
|
||||
-- What is fed to the native treesitter is essentially the AST
|
||||
-- This AST is then used for syntax-highlighting and many other operations on the code
|
||||
-- Hence, this plugin is only to make installing parsers easier
|
||||
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
lazy = false,
|
||||
build = ":TSUpdate",
|
||||
@@ -357,6 +359,13 @@ return {
|
||||
"jsonc",
|
||||
"python",
|
||||
"dockerfile",
|
||||
"latex",
|
||||
"norg",
|
||||
"scss",
|
||||
"tsx",
|
||||
"vue",
|
||||
"svelte",
|
||||
"typst",
|
||||
},
|
||||
|
||||
auto_install = true,
|
||||
|
||||
Reference in New Issue
Block a user