-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add docgen, QOL in neotree, lspzero, treesitter
- Loading branch information
1 parent
c8af8e1
commit 0619bb7
Showing
5 changed files
with
74 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
return { | ||
"kkoomen/vim-doge", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,40 @@ | ||
return { | ||
"nvim-neo-tree/neo-tree.nvim", | ||
branch = "v3.x", | ||
dependencies = { | ||
"nvim-lua/plenary.nvim", | ||
"nvim-tree/nvim-web-devicons", -- not strictly required, but recommended | ||
"MunifTanjim/nui.nvim", | ||
-- "3rd/image.nvim", -- Optional image support in preview window: See `# Preview Mode` for more information | ||
}, | ||
config = function() | ||
require("neo-tree").setup({ | ||
window = { | ||
width = 28, | ||
mappings = { | ||
['e'] = function() vim.api.nvim_exec('Neotree focus filesystem left', true) end, | ||
['b'] = function() vim.api.nvim_exec('Neotree focus buffers left', true) end, | ||
['g'] = function() vim.api.nvim_exec('Neotree focus git_status left', true) end, | ||
} | ||
}, | ||
filesystem = { | ||
filtered_items = { | ||
visible = false, | ||
show_hidden_count = true, | ||
hide_dotfiles = true, | ||
hide_gitignored = false, | ||
hide_by_name = { | ||
-- '.git', | ||
-- "node_modules" | ||
}, | ||
never_show = {}, | ||
}, | ||
} | ||
}) | ||
vim.keymap.set("n", "<leader>jv", "<Cmd>Neotree toggle<CR>") | ||
end | ||
"nvim-neo-tree/neo-tree.nvim", | ||
branch = "v3.x", | ||
dependencies = { | ||
"nvim-lua/plenary.nvim", | ||
"nvim-tree/nvim-web-devicons", -- not strictly required, but recommended | ||
"MunifTanjim/nui.nvim", | ||
-- "3rd/image.nvim", -- Optional image support in preview window: See `# Preview Mode` for more information | ||
}, | ||
config = function() | ||
require("neo-tree").setup({ | ||
window = { | ||
width = 28, | ||
auto_expand_width = true; | ||
mappings = { | ||
['e'] = function() vim.api.nvim_exec('Neotree focus filesystem left', true) end, | ||
['b'] = function() vim.api.nvim_exec('Neotree focus buffers left', true) end, | ||
['g'] = function() vim.api.nvim_exec('Neotree focus git_status left', true) end, | ||
} | ||
}, | ||
filesystem = { | ||
filtered_items = { | ||
visible = false, | ||
show_hidden_count = true, | ||
hide_dotfiles = true, | ||
hide_gitignored = false, | ||
hide_by_name = { | ||
-- '.git', | ||
-- "node_modules" | ||
}, | ||
never_show = {}, | ||
follow_current_file = { | ||
enabled = true, | ||
} | ||
}, | ||
} | ||
}) | ||
vim.keymap.set("n", "<leader>jv", "<Cmd>Neotree toggle<CR>") | ||
end | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,34 @@ | ||
return { | ||
-- Install nvim-treesitter | ||
{ | ||
"nvim-treesitter/nvim-treesitter", -- The plugin | ||
run = ":TSUpdate", -- Runs :TSUpdate after installation to install parsers | ||
config = function() | ||
require 'nvim-treesitter.configs'.setup { | ||
-- A list of parser names, or "all" (the listed parsers MUST always be installed) | ||
ensure_installed = { "javascript", "typescript", "python", "css", "c", "lua", "vim", "vimdoc", "query", "markdown", "markdown_inline" }, | ||
-- Install nvim-treesitter | ||
{ | ||
"nvim-treesitter/nvim-treesitter", -- The plugin | ||
run = ":TSUpdate", -- Runs :TSUpdate after installation to install parsers | ||
config = function() | ||
require 'nvim-treesitter.configs'.setup { | ||
-- A list of parser names, or "all" (the listed parsers MUST always be installed) | ||
ensure_installed = { "javascript", "typescript", "python", "css", "c", "lua", "vim", "vimdoc", "query", "markdown", "markdown_inline" }, | ||
|
||
-- Install parsers synchronously (only applied to `ensure_installed`) | ||
sync_install = false, | ||
-- Install parsers synchronously (only applied to `ensure_installed`) | ||
sync_install = false, | ||
|
||
-- Automatically install missing parsers when entering buffer | ||
-- Recommendation: set to false if you don't have `tree-sitter` CLI installed locally | ||
auto_install = true, | ||
-- Automatically install missing parsers when entering buffer | ||
-- Recommendation: set to false if you don't have `tree-sitter` CLI installed locally | ||
auto_install = true, | ||
|
||
indent = { | ||
enable = true | ||
}, | ||
indent = { | ||
enable = true | ||
}, | ||
|
||
highlight = { | ||
enable = true, | ||
highlight = { | ||
enable = true, | ||
|
||
-- 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 = false, | ||
}, | ||
} | ||
end | ||
} | ||
-- 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 = false, | ||
}, | ||
} | ||
end | ||
} | ||
} |