add: update nvim tree float config

This commit is contained in:
asep.komarudin 2024-06-01 05:15:35 +07:00
parent 1f5323945b
commit 8a78fd41df
5 changed files with 60 additions and 77 deletions

View file

@ -10,12 +10,12 @@
"cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" },
"code_runner.nvim": { "branch": "main", "commit": "6c5bfe44a6c7523350cd706e6b3b8101166eed99" },
"codeium.vim": { "branch": "main", "commit": "289eb724e5d6fab2263e94a1ad6e54afebefafb2" },
"darcula-dark.nvim": { "branch": "main", "commit": "d78f0ca9800f953f1509e275e8de0d2aefb8ccb6" },
"darcula-dark.nvim": { "branch": "main", "commit": "cce636860dc5151b6980a35dd378f54a238e0f0e" },
"dressing.nvim": { "branch": "master", "commit": "572314728cb1ce012e825fd66331f52c94acac12" },
"friendly-snippets": { "branch": "main", "commit": "d0610077b6129cf9f7f78afbe3a1425d60f6e2f1" },
"gitsigns.nvim": { "branch": "main", "commit": "76927d14d3fbd4ba06ccb5246e79d93b5442c188" },
"indent-blankline.nvim": { "branch": "master", "commit": "d98f537c3492e87b6dc6c2e3f66ac517528f406f" },
"lazy.nvim": { "branch": "main", "commit": "24fa2a97085ca8a7220b5b078916f81e316036fd" },
"lazy.nvim": { "branch": "main", "commit": "eab487c2520f0fe9e54eb5e3ea0606e20512492e" },
"lsp-progress.nvim": { "branch": "main", "commit": "55a04895ea20c365b670051a3128265d43bdfa3d" },
"lualine.nvim": { "branch": "master", "commit": "0a5a66803c7407767b799067986b4dc3036e1983" },
"mason-lspconfig.nvim": { "branch": "main", "commit": "9ae570e206360e47d30b4c35a4550c165f4ea7b7" },
@ -43,6 +43,7 @@
"nvim-ts-context-commentstring": { "branch": "main", "commit": "cb064386e667def1d241317deed9fd1b38f0dc2e" },
"nvim-ufo": { "branch": "main", "commit": "a5390706f510d39951dd581f6d2a972741b3fa26" },
"nvim-web-devicons": { "branch": "master", "commit": "5b9067899ee6a2538891573500e8fd6ff008440f" },
"playground": { "branch": "master", "commit": "bcfab84f98a33f2ad34dda6c842046dca70aabf6" },
"plenary.nvim": { "branch": "master", "commit": "50012918b2fc8357b87cff2a7f7f0446e47da174" },
"promise-async": { "branch": "main", "commit": "38a4575da9497326badd3995e768b4ccf0bb153e" },
"rainbow-delimiters.nvim": { "branch": "master", "commit": "12b1a1e095d968887a17ef791c2edb78d7595d46" },
@ -54,6 +55,6 @@
"vim-illuminate": { "branch": "master", "commit": "5eeb7951fc630682c322e88a9bbdae5c224ff0aa" },
"vim-startuptime": { "branch": "master", "commit": "97a88e688482a09c3c4b777d07b509b328a5ec29" },
"vim-visual-multi": { "branch": "master", "commit": "b84a6d42c1c10678928b0bf8327f378c8bc8af5a" },
"which-key.nvim": { "branch": "main", "commit": "ce741eb559c924d72e3a67d2189ad3771a231414" },
"which-key.nvim": { "branch": "main", "commit": "4b7167f8fb2dba3d01980735e3509e172c024c29" },
"yanky.nvim": { "branch": "main", "commit": "9268018e92d02650a94e39dd5f5903c542f7ea11" }
}

View file

@ -1,8 +1,8 @@
local transparent_mode = vim.g.pcode_transparent_mode or 0
if transparent_mode ~= nil then
if transparent_mode == 1 then
vim.cmd("TransparentDisable")
vim.cmd("TransparentEnable")
vim.cmd "TransparentDisable"
vim.cmd "TransparentEnable"
end
end
@ -12,7 +12,7 @@ local _get_folder_name = function()
return " " .. str:lower():gsub("^%l", string.upper) .. " "
end
local term_program = vim.fn.getenv("TERM_PROGRAM")
local term_program = vim.fn.getenv "TERM_PROGRAM"
if term_program == "WezTerm" then
-- vim.cmd('silent !wezterm cli set-tab-title "' .. _get_folder_name() .. '"')
-- create autocmd on insertEnter

View file

@ -111,4 +111,4 @@ vim.g.pcode_cmptag = false --https://github.com/quangnguyen30192/cmp-nvim-tags
-- 0 = normal
-- 1 = float
vim.g.pcode_nvimtree_isfloat = 0
vim.g.pcode_nvimtree_isfloat = 1

View file

@ -1,27 +1,27 @@
return {
-- "folke/playground",
-- lazy = true,
-- event = "BufRead",
-- config = function()
-- require("nvim-treesitter.configs").setup {
-- playground = {
-- enable = true,
-- disable = {},
-- updatetime = 25, -- Debounced time for highlighting nodes in the playground from source code
-- persist_queries = false, -- Whether the query persists across vim sessions
-- keybindings = {
-- toggle_query_editor = "o",
-- toggle_hl_groups = "i",
-- toggle_injected_languages = "t",
-- toggle_anonymous_nodes = "a",
-- toggle_language_display = "I",
-- focus_language = "f",
-- unfocus_language = "F",
-- update = "R",
-- goto_node = "<cr>",
-- show_help = "?",
-- },
-- },
-- }
-- end,
"folke/playground",
lazy = true,
event = "BufRead",
config = function()
require("nvim-treesitter.configs").setup {
playground = {
enable = true,
disable = {},
updatetime = 25, -- Debounced time for highlighting nodes in the playground from source code
persist_queries = false, -- Whether the query persists across vim sessions
keybindings = {
toggle_query_editor = "o",
toggle_hl_groups = "i",
toggle_injected_languages = "t",
toggle_anonymous_nodes = "a",
toggle_language_display = "I",
focus_language = "f",
unfocus_language = "F",
update = "R",
goto_node = "<cr>",
show_help = "?",
},
},
}
end,
}

View file

@ -23,28 +23,6 @@ return {
respect_buf_cwd = false,
on_attach = "default",
select_prompts = false,
-- view = {
-- adaptive_size = false,
-- centralize_selection = true,
-- width = 30,
-- side = "left",
-- preserve_window_proportions = false,
-- number = false,
-- relativenumber = false,
-- signcolumn = "yes",
-- float = {
-- enable = false,
-- quit_on_focus_loss = true,
-- open_win_config = {
-- relative = "editor",
-- border = "rounded",
-- width = 30,
-- height = 30,
-- row = 1,
-- col = 1,
-- },
-- },
-- },
view = set_view,
renderer = {
add_trailing = false,
@ -232,5 +210,9 @@ return {
},
config = function(_, opts)
require("nvim-tree").setup(opts)
local api = require "nvim-tree.api"
api.events.subscribe(api.events.Event.FileCreated, function(file)
vim.cmd("edit " .. file.fname)
end)
end,
}