chore(plugins): clean up
This commit is contained in:
@@ -3,7 +3,6 @@
|
|||||||
---@type LazyPluginSpec
|
---@type LazyPluginSpec
|
||||||
return {
|
return {
|
||||||
"numToStr/Comment.nvim",
|
"numToStr/Comment.nvim",
|
||||||
lazy = true,
|
|
||||||
event = "VimEnter",
|
event = "VimEnter",
|
||||||
opts = {
|
opts = {
|
||||||
--ignore empty lines
|
--ignore empty lines
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
---@type LazyPluginSpec
|
---@type LazyPluginSpec
|
||||||
return {
|
return {
|
||||||
"wellle/context.vim",
|
"wellle/context.vim",
|
||||||
lazy = true,
|
|
||||||
event = "VimEnter",
|
event = "VimEnter",
|
||||||
init = function()
|
init = function()
|
||||||
vim.g.context_enabled = true
|
vim.g.context_enabled = true
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ end
|
|||||||
---@type LazyPluginSpec
|
---@type LazyPluginSpec
|
||||||
return {
|
return {
|
||||||
"tpope/vim-fugitive",
|
"tpope/vim-fugitive",
|
||||||
lazy = true,
|
|
||||||
event = "VimEnter",
|
event = "VimEnter",
|
||||||
---@type LazyKeysSpec[]
|
---@type LazyKeysSpec[]
|
||||||
keys = {
|
keys = {
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
---@type LazyPluginSpec
|
---@type LazyPluginSpec
|
||||||
return {
|
return {
|
||||||
"lewis6991/gitsigns.nvim",
|
"lewis6991/gitsigns.nvim",
|
||||||
lazy = true,
|
|
||||||
event = "VimEnter",
|
event = "VimEnter",
|
||||||
opts = {
|
opts = {
|
||||||
on_attach = function(bufnr)
|
on_attach = function(bufnr)
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
---@type LazyPluginSpec
|
---@type LazyPluginSpec
|
||||||
return {
|
return {
|
||||||
"nvim-lualine/lualine.nvim",
|
"nvim-lualine/lualine.nvim",
|
||||||
lazy = true,
|
|
||||||
event = "VimEnter",
|
event = "VimEnter",
|
||||||
config = function()
|
config = function()
|
||||||
local custom_moonfly = require("lualine.themes.moonfly")
|
local custom_moonfly = require("lualine.themes.moonfly")
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
---@type LazyPluginSpec
|
---@type LazyPluginSpec
|
||||||
return {
|
return {
|
||||||
"williamboman/mason.nvim",
|
"williamboman/mason.nvim",
|
||||||
lazy = true,
|
|
||||||
event = "VimEnter",
|
event = "VimEnter",
|
||||||
config = true,
|
config = true,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ return {
|
|||||||
stages = "static",
|
stages = "static",
|
||||||
},
|
},
|
||||||
config = function(_, opts)
|
config = function(_, opts)
|
||||||
|
---@type notify
|
||||||
vim.notify = require("notify")
|
vim.notify = require("notify")
|
||||||
vim.notify.setup(opts)
|
vim.notify.setup(opts)
|
||||||
end,
|
end,
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
---@type LazyPluginSpec
|
---@type LazyPluginSpec
|
||||||
return {
|
return {
|
||||||
"nvim-telescope/telescope.nvim",
|
"nvim-telescope/telescope.nvim",
|
||||||
lazy = true,
|
|
||||||
event = "VimEnter",
|
event = "VimEnter",
|
||||||
dependencies = {
|
dependencies = {
|
||||||
"nvim-lua/plenary.nvim",
|
"nvim-lua/plenary.nvim",
|
||||||
|
|||||||
+40
-43
@@ -1,50 +1,47 @@
|
|||||||
-- https://github.com/nvim-treesitter/nvim-treesitter
|
-- https://github.com/nvim-treesitter/nvim-treesitter
|
||||||
|
|
||||||
---@type LazyPluginSpec[]
|
---@type LazyPluginSpec
|
||||||
return {
|
return {
|
||||||
{
|
"nvim-treesitter/nvim-treesitter",
|
||||||
"nvim-treesitter/nvim-treesitter",
|
build = ":TSUpdate",
|
||||||
build = ":TSUpdate",
|
event = "VimEnter",
|
||||||
lazy = true,
|
opts = {
|
||||||
event = "VimEnter",
|
ensure_installed = {
|
||||||
opts = {
|
"c", -- recommended default
|
||||||
ensure_installed = {
|
"lua", -- recommended default
|
||||||
"c", -- recommended default
|
"vim", -- recommended default
|
||||||
"lua", -- recommended default
|
"vimdoc", -- recommended default
|
||||||
"vim", -- recommended default
|
"query", -- recommended default
|
||||||
"vimdoc", -- recommended default
|
"luadoc",
|
||||||
"query", -- recommended default
|
"phpdoc",
|
||||||
"luadoc",
|
"org",
|
||||||
"phpdoc",
|
"comment",
|
||||||
"org",
|
|
||||||
"comment",
|
|
||||||
},
|
|
||||||
auto_install = true,
|
|
||||||
highlight = {
|
|
||||||
enable = true,
|
|
||||||
disable = {},
|
|
||||||
|
|
||||||
-- Setting this to true will run `:h syntax` and tree-sitter at the same time.
|
|
||||||
-- Set this to `true` if you depend on 'syntax' being enabled (like for indentation).
|
|
||||||
-- Using this option may slow down your editor, and you may see some duplicate highlights.
|
|
||||||
-- Instead of true it can also be a list of languages
|
|
||||||
additional_vim_regex_highlighting = { "org", "php", "python" },
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
config = function(_, opts)
|
auto_install = true,
|
||||||
require("nvim-treesitter.configs").setup(opts)
|
highlight = {
|
||||||
|
enable = true,
|
||||||
|
disable = {},
|
||||||
|
|
||||||
vim.opt.foldmethod = "expr"
|
-- Setting this to true will run `:h syntax` and tree-sitter at the same time.
|
||||||
vim.opt.foldexpr = "nvim_treesitter#foldexpr()"
|
-- Set this to `true` if you depend on 'syntax' being enabled (like for indentation).
|
||||||
vim.opt.foldenable = true
|
-- Using this option may slow down your editor, and you may see some duplicate highlights.
|
||||||
|
-- Instead of true it can also be a list of languages
|
||||||
-- Disable LSP semantic highlighting for comments because it will otherwise
|
additional_vim_regex_highlighting = { "org", "php", "python" },
|
||||||
-- override highlights from `comment`.
|
},
|
||||||
vim.api.nvim_set_hl(0, "@lsp.type.comment", {})
|
|
||||||
|
|
||||||
-- To set the priority of semantic highlighting lower than treesitter (100),
|
|
||||||
-- uncomment the line below:
|
|
||||||
-- vim.highlight.priorities.semantic_tokens = 99
|
|
||||||
end,
|
|
||||||
},
|
},
|
||||||
|
config = function(_, opts)
|
||||||
|
require("nvim-treesitter.configs").setup(opts)
|
||||||
|
|
||||||
|
vim.opt.foldmethod = "expr"
|
||||||
|
vim.opt.foldexpr = "nvim_treesitter#foldexpr()"
|
||||||
|
vim.opt.foldenable = true
|
||||||
|
|
||||||
|
-- Disable LSP semantic highlighting for comments because it will otherwise
|
||||||
|
-- override highlights from `comment`.
|
||||||
|
vim.api.nvim_set_hl(0, "@lsp.type.comment", {})
|
||||||
|
|
||||||
|
-- To set the priority of semantic highlighting lower than treesitter (100),
|
||||||
|
-- uncomment the line below:
|
||||||
|
-- vim.highlight.priorities.semantic_tokens = 99
|
||||||
|
end,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
---@type LazyPluginSpec
|
---@type LazyPluginSpec
|
||||||
return {
|
return {
|
||||||
"simeji/winresizer",
|
"simeji/winresizer",
|
||||||
lazy = true,
|
|
||||||
keys = {
|
keys = {
|
||||||
{ "<C-W>r", vim.cmd.WinResizerStartResize, mode = "n" },
|
{ "<C-W>r", vim.cmd.WinResizerStartResize, mode = "n" },
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
---@type LazyPluginSpec
|
---@type LazyPluginSpec
|
||||||
return {
|
return {
|
||||||
"sindrets/winshift.nvim",
|
"sindrets/winshift.nvim",
|
||||||
lazy = true,
|
|
||||||
keys = {
|
keys = {
|
||||||
{ "<C-W>m", vim.cmd.WinShift, mode = "n" },
|
{ "<C-W>m", vim.cmd.WinShift, mode = "n" },
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user