Added folder tree
This commit is contained in:
@@ -11,7 +11,6 @@ return {
|
||||
ensure_installed = {
|
||||
"go",
|
||||
"gomod",
|
||||
"gosum",
|
||||
"gowork",
|
||||
"typescript",
|
||||
"tsx",
|
||||
@@ -22,6 +21,7 @@ return {
|
||||
"markdown",
|
||||
"yaml",
|
||||
"bash",
|
||||
"c_sharp",
|
||||
},
|
||||
})
|
||||
end,
|
||||
|
||||
+3
-1
@@ -10,7 +10,7 @@ return {
|
||||
dependencies = { "williamboman/mason.nvim" },
|
||||
opts = {
|
||||
-- installs these via Mason (so you don't have to)
|
||||
ensure_installed = { "gopls", "ts_ls", "lua_ls", "clangd", "rust_analyzer" },
|
||||
ensure_installed = { "gopls", "ts_ls", "lua_ls", "clangd", "rust_analyzer", "omnisharp" },
|
||||
|
||||
-- optional: automatically call vim.lsp.enable() for installed servers
|
||||
automatic_enable = true,
|
||||
@@ -162,6 +162,7 @@ return {
|
||||
c = { "clang-format" },
|
||||
cpp = { "clang-format" },
|
||||
rust = { "rustfmt" },
|
||||
cs = { "csharpier" },
|
||||
},
|
||||
})
|
||||
|
||||
@@ -170,4 +171,5 @@ return {
|
||||
end, { desc = "Format" })
|
||||
end,
|
||||
},
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
-- ~/.config/nvim/lua/plugins/nvim-tree.lua
|
||||
return {
|
||||
{
|
||||
"nvim-tree/nvim-tree.lua",
|
||||
version = "*", -- use latest stable tag
|
||||
dependencies = {
|
||||
-- optional, but recommended for file icons
|
||||
"nvim-tree/nvim-web-devicons",
|
||||
},
|
||||
cmd = { "NvimTreeToggle", "NvimTreeFocus", "NvimTreeFindFile", "NvimTreeOpen" },
|
||||
keys = {
|
||||
{ "<leader>e", "<cmd>NvimTreeToggle<cr>", desc = "Explorer (toggle)" },
|
||||
{ "<leader>E", "<cmd>NvimTreeFindFile<cr>", desc = "Explorer (reveal file)" },
|
||||
},
|
||||
init = function()
|
||||
-- recommended: disable netrw to avoid conflicts
|
||||
vim.g.loaded_netrw = 1
|
||||
vim.g.loaded_netrwPlugin = 1
|
||||
|
||||
-- you already set this elsewhere, but it's fine to keep it here too
|
||||
vim.opt.termguicolors = true
|
||||
end,
|
||||
opts = {
|
||||
sort = { sorter = "case_sensitive" },
|
||||
view = { width = 32 },
|
||||
renderer = { group_empty = true },
|
||||
filters = { dotfiles = false },
|
||||
|
||||
-- Quality-of-life
|
||||
update_focused_file = {
|
||||
enable = true,
|
||||
update_root = false,
|
||||
},
|
||||
git = { enable = true },
|
||||
diagnostics = { enable = true },
|
||||
|
||||
-- Close tree when opening a file (optional: set to false if you prefer it pinned)
|
||||
actions = {
|
||||
open_file = { quit_on_open = false },
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
+1
-2
@@ -1,7 +1,6 @@
|
||||
return {
|
||||
{ "nvim-tree/nvim-web-devicons", lazy = true },
|
||||
|
||||
-- Theme: pick ONE. TokyoNight is a safe default.
|
||||
{
|
||||
"catppuccin/nvim",
|
||||
priority = 1000,
|
||||
@@ -28,5 +27,5 @@ return {
|
||||
options = { theme = "auto", globalstatus = true },
|
||||
})
|
||||
end,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user