chore(nvim): Split plugins to their own file and lazyload commentary
This commit is contained in:
parent
e4ad35f4a6
commit
6636abb02f
3 changed files with 63 additions and 54 deletions
|
@ -21,33 +21,13 @@ return {
|
|||
end,
|
||||
},
|
||||
{
|
||||
"nvim-neo-tree/neo-tree.nvim", -- I'll be using oil.nvim, but for better visual I'll keep this
|
||||
"tpope/vim-commentary", -- shortcut to comment a line
|
||||
keys = {
|
||||
{ "<C-n>", "<cmd>Neotree toggle<cr>", desc = "NeoTree" },
|
||||
{ "gcc", mode = "n" },
|
||||
{ "gc", mode = "v" },
|
||||
{ "<esc>gcc", mode = "i" },
|
||||
},
|
||||
branch = "v3.x",
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
"nvim-tree/nvim-web-devicons",
|
||||
"MunifTanjim/nui.nvim",
|
||||
},
|
||||
config = function ()
|
||||
require("neo-tree").setup({
|
||||
close_if_last_window = true,
|
||||
})
|
||||
end,
|
||||
},
|
||||
{
|
||||
"stevearc/oil.nvim",
|
||||
keys = {
|
||||
{ "-", "<cmd>Oil<cr>", desc = "Oil" },
|
||||
},
|
||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||
config = function ()
|
||||
require("oil").setup()
|
||||
end
|
||||
},
|
||||
"tpope/vim-commentary", -- shortcut to comment a line
|
||||
{
|
||||
"dstein64/vim-startuptime",
|
||||
cmd = "StartupTime", -- Note to self: lazy load on command
|
||||
|
@ -55,34 +35,4 @@ return {
|
|||
-- Note to self: init is called during startup. Configuration for vim plugins typically should be set in an init function
|
||||
end,
|
||||
},
|
||||
|
||||
-- Syntax Highlighting stuff
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
opts = {
|
||||
ensure_installed = {
|
||||
"gsp",
|
||||
},
|
||||
|
||||
highlight = {
|
||||
enable = true,
|
||||
additional_vim_regex_highlighting = false,
|
||||
},
|
||||
},
|
||||
config = function (_, opts)
|
||||
local config = require("nvim-treesitter.parsers").get_parser_configs()
|
||||
config.gsp = {
|
||||
install_info = {
|
||||
url = "https://git.sr.ht/~mango/tree-sitter-gsp",
|
||||
files = {"src/parser.c"},
|
||||
},
|
||||
filetype = "gsp",
|
||||
}
|
||||
require("nvim-treesitter.configs").setup(opts)
|
||||
end
|
||||
},
|
||||
{
|
||||
url = "https://git.sr.ht/~mango/tree-sitter-gsp",
|
||||
fp = "gsp",
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue