This commit is contained in:
Nikos Papadakis 2024-03-01 16:10:32 +02:00
parent 2f6925561b
commit 8a71f6d788
Signed by untrusted user who does not match committer: nikos
GPG key ID: 78871F9905ADFF02
4 changed files with 60 additions and 52 deletions

View file

@ -1,45 +0,0 @@
local ok, treesitter = pcall(require, "nvim-treesitter.configs")
if not ok then
return
end
treesitter.setup {
highlight = {
enable = true,
additional_vim_regex_highlighting = { "php" },
},
indent = {
enable = false,
},
textobjects = {
select = {
enable = true,
keymaps = {
["af"] = "@function.outer",
["if"] = "@function.inner",
["ia"] = "@parameter.inner",
},
},
swap = {
enable = true,
swap_next = {
["<leader>@"] = "@parameter.inner",
},
},
move = {
enable = true,
goto_next_start = {
["]]"] = "@function.outer",
},
goto_next_end = {
["]["] = "@function.outer",
},
goto_previous_start = {
["[["] = "@function.outer",
},
goto_previous_end = {
["[]"] = "@function.outer",
},
},
},
}

View file

@ -12,12 +12,6 @@ return {
require "my.telescope"
end
},
{
"nvim-treesitter/nvim-treesitter",
dependencies = {
"nvim-treesitter/nvim-treesitter-textobjects",
},
},
{
"windwp/nvim-autopairs",
event = "InsertEnter",
@ -69,6 +63,8 @@ return {
version = '*',
config = function()
require "mini.statusline".setup()
require "mini.comment".setup()
require "mini.bufremove".setup()
end
},
}

View file

@ -5,7 +5,7 @@ return {
priority = 1000, -- make sure to load this before all the other start plugins
name = "catppuccin",
opts = {
flavour = "latte", -- latte, frappe, macchiato, mocha
flavour = "frappe", -- latte, frappe, macchiato, mocha
transparent_background = false,
dim_inactive = {
enabled = true,

View file

@ -0,0 +1,57 @@
return {
{
"nvim-treesitter/nvim-treesitter",
build = ":TSUpdate",
event = { "VeryLazy" },
dependencies = {
"nvim-treesitter/nvim-treesitter-textobjects",
},
opts = {
highlight = {
enable = true,
additional_vim_regex_highlighting = { "php" },
},
indent = {
enable = false,
},
textobjects = {
select = {
enable = true,
keymaps = {
["af"] = "@function.outer",
["if"] = "@function.inner",
["ia"] = "@parameter.inner",
},
},
swap = {
enable = true,
swap_next = {
["<leader>@"] = "@parameter.inner",
},
},
move = {
enable = true,
goto_next_start = {
["]]"] = "@function.outer",
},
goto_next_end = {
["]["] = "@function.outer",
},
goto_previous_start = {
["[["] = "@function.outer",
},
goto_previous_end = {
["[]"] = "@function.outer",
},
},
},
},
config = function(_, opts)
require("nvim-treesitter.configs").setup(opts)
end,
},
{
"windwp/nvim-ts-autotag",
opts = {},
},
}