feat: minor styling adjustments + tab buffer division
This commit is contained in:
@@ -15,8 +15,6 @@
|
|||||||
"grug-far.nvim": { "branch": "main", "commit": "21790e59dd0109a92a70cb874dd002af186314f5" },
|
"grug-far.nvim": { "branch": "main", "commit": "21790e59dd0109a92a70cb874dd002af186314f5" },
|
||||||
"gruvbox.nvim": { "branch": "main", "commit": "154eb5ff5b96d0641307113fa385eaf0d36d9796" },
|
"gruvbox.nvim": { "branch": "main", "commit": "154eb5ff5b96d0641307113fa385eaf0d36d9796" },
|
||||||
"indent-blankline.nvim": { "branch": "master", "commit": "d28a3f70721c79e3c5f6693057ae929f3d9c0a03" },
|
"indent-blankline.nvim": { "branch": "master", "commit": "d28a3f70721c79e3c5f6693057ae929f3d9c0a03" },
|
||||||
"koda.nvim": { "branch": "main", "commit": "4668e307f2f3a1e38bd627b14d13368ebf5b8d9f" },
|
|
||||||
"komau.vim": { "branch": "master", "commit": "800bd5c9ace33f9cab2dd7f4004369cee18bebde" },
|
|
||||||
"lazy.nvim": { "branch": "main", "commit": "306a05526ada86a7b30af95c5cc81ffba93fef97" },
|
"lazy.nvim": { "branch": "main", "commit": "306a05526ada86a7b30af95c5cc81ffba93fef97" },
|
||||||
"lualine.nvim": { "branch": "master", "commit": "131a558e13f9f28b15cd235557150ccb23f89286" },
|
"lualine.nvim": { "branch": "master", "commit": "131a558e13f9f28b15cd235557150ccb23f89286" },
|
||||||
"mason.nvim": { "branch": "main", "commit": "cb8445f8ce85d957416c106b780efd51c6298f89" },
|
"mason.nvim": { "branch": "main", "commit": "cb8445f8ce85d957416c106b780efd51c6298f89" },
|
||||||
@@ -36,6 +34,7 @@
|
|||||||
"nvim-window-picker": { "branch": "main", "commit": "6382540b2ae5de6c793d4aa2e3fe6dbb518505ec" },
|
"nvim-window-picker": { "branch": "main", "commit": "6382540b2ae5de6c793d4aa2e3fe6dbb518505ec" },
|
||||||
"overseer.nvim": { "branch": "master", "commit": "f818eefff81f4b12fb7cf236f1b6c16768a2fcbc" },
|
"overseer.nvim": { "branch": "master", "commit": "f818eefff81f4b12fb7cf236f1b6c16768a2fcbc" },
|
||||||
"plenary.nvim": { "branch": "master", "commit": "74b06c6c75e4eeb3108ec01852001636d85a932b" },
|
"plenary.nvim": { "branch": "master", "commit": "74b06c6c75e4eeb3108ec01852001636d85a932b" },
|
||||||
|
"scope.nvim": { "branch": "main", "commit": "228aabdb1b9cc74f0c0ccec88e79873857236e49" },
|
||||||
"smear-cursor.nvim": { "branch": "main", "commit": "9e9378d6ee34bb3782e0e8c63d9ec8ca618b479b" },
|
"smear-cursor.nvim": { "branch": "main", "commit": "9e9378d6ee34bb3782e0e8c63d9ec8ca618b479b" },
|
||||||
"snacks.nvim": { "branch": "main", "commit": "ad9ede6a9cddf16cedbd31b8932d6dcdee9b716e" },
|
"snacks.nvim": { "branch": "main", "commit": "ad9ede6a9cddf16cedbd31b8932d6dcdee9b716e" },
|
||||||
"telescope-fzf-native.nvim": { "branch": "main", "commit": "6fea601bd2b694c6f2ae08a6c6fab14930c60e2c" },
|
"telescope-fzf-native.nvim": { "branch": "main", "commit": "6fea601bd2b694c6f2ae08a6c6fab14930c60e2c" },
|
||||||
|
|||||||
@@ -1,12 +1,13 @@
|
|||||||
local autocmd = vim.api.nvim_create_autocmd
|
local autocmd = vim.api.nvim_create_autocmd
|
||||||
|
|
||||||
autocmd("ModeChanged", {
|
-- Replaced with config field, kept in case of issues
|
||||||
callback = function(opts)
|
-- autocmd("ModeChanged", {
|
||||||
require("lualine").refresh()
|
-- callback = function(opts)
|
||||||
end,
|
-- require("lualine").refresh()
|
||||||
})
|
-- end,
|
||||||
autocmd("CursorMoved", {
|
-- })
|
||||||
callback = function(opts)
|
-- autocmd("CursorMoved", {
|
||||||
require("lualine").refresh()
|
-- callback = function(opts)
|
||||||
end,
|
-- require("lualine").refresh()
|
||||||
})
|
-- end,
|
||||||
|
-- })
|
||||||
|
|||||||
@@ -274,10 +274,6 @@ map("n", "<leader>ua", "<cmd>AerialToggle<cr>", { desc = "Toggle aerial view" })
|
|||||||
map("n", "<leader>ui", vim.show_pos, { desc = "Inspect Pos" })
|
map("n", "<leader>ui", vim.show_pos, { desc = "Inspect Pos" })
|
||||||
map("n", "<leader>uI", "<cmd>InspectTree<cr>", { desc = "Inspect Tree" })
|
map("n", "<leader>uI", "<cmd>InspectTree<cr>", { desc = "Inspect Tree" })
|
||||||
|
|
||||||
---- Terminal ----
|
|
||||||
|
|
||||||
map({ "n", "t" }, "<leader>tt", "<cmd>Floaterminal<CR>", { desc = "Toggle terminal" })
|
|
||||||
|
|
||||||
-- Terminal Mappings
|
-- Terminal Mappings
|
||||||
map("t", "<esc><esc>", "<c-\\><c-n>", { desc = "Enter Normal Mode" })
|
map("t", "<esc><esc>", "<c-\\><c-n>", { desc = "Enter Normal Mode" })
|
||||||
map("t", "<C-h>", "<cmd>wincmd h<cr>", { desc = "Go to Left Window" })
|
map("t", "<C-h>", "<cmd>wincmd h<cr>", { desc = "Go to Left Window" })
|
||||||
|
|||||||
@@ -11,6 +11,9 @@ return {
|
|||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
-- Have buffers by tab
|
||||||
|
{ "tiagovla/scope.nvim", config = true },
|
||||||
|
|
||||||
{
|
{
|
||||||
"nvim-lualine/lualine.nvim",
|
"nvim-lualine/lualine.nvim",
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
|
|||||||
@@ -1,57 +0,0 @@
|
|||||||
vim.keymap.set("t", "<esc><esc>", "<c-\\><c-n>")
|
|
||||||
|
|
||||||
local state = {
|
|
||||||
floating = {
|
|
||||||
buf = -1,
|
|
||||||
win = -1,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
local function create_floating_window(opts)
|
|
||||||
opts = opts or {}
|
|
||||||
local width = opts.width or math.floor(vim.o.columns * 0.8)
|
|
||||||
local height = opts.height or math.floor(vim.o.lines * 0.8)
|
|
||||||
|
|
||||||
-- Calculate the position to center the window
|
|
||||||
local col = math.floor((vim.o.columns - width) / 2)
|
|
||||||
local row = math.floor((vim.o.lines - height) / 2)
|
|
||||||
|
|
||||||
-- Create a buffer
|
|
||||||
local buf = nil
|
|
||||||
if vim.api.nvim_buf_is_valid(opts.buf) then
|
|
||||||
buf = opts.buf
|
|
||||||
else
|
|
||||||
buf = vim.api.nvim_create_buf(false, true) -- No file, scratch buffer
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Define window configuration
|
|
||||||
local win_config = {
|
|
||||||
relative = "editor",
|
|
||||||
width = width,
|
|
||||||
height = height,
|
|
||||||
col = col,
|
|
||||||
row = row,
|
|
||||||
style = "minimal", -- No borders or extra UI elements
|
|
||||||
border = "rounded",
|
|
||||||
}
|
|
||||||
|
|
||||||
-- Create the floating window
|
|
||||||
local win = vim.api.nvim_open_win(buf, true, win_config)
|
|
||||||
|
|
||||||
return { buf = buf, win = win }
|
|
||||||
end
|
|
||||||
|
|
||||||
local toggle_terminal = function()
|
|
||||||
if not vim.api.nvim_win_is_valid(state.floating.win) then
|
|
||||||
state.floating = create_floating_window({ buf = state.floating.buf })
|
|
||||||
if vim.bo[state.floating.buf].buftype ~= "terminal" then
|
|
||||||
vim.cmd.terminal()
|
|
||||||
end
|
|
||||||
else
|
|
||||||
vim.api.nvim_win_hide(state.floating.win)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Example usage:
|
|
||||||
-- Create a floating window with default dimensions
|
|
||||||
vim.api.nvim_create_user_command("Floaterminal", toggle_terminal, {})
|
|
||||||
@@ -43,8 +43,14 @@ local config = {
|
|||||||
offsets = {
|
offsets = {
|
||||||
{
|
{
|
||||||
filetype = "neo-tree",
|
filetype = "neo-tree",
|
||||||
text = "",
|
text = "", -- , ,
|
||||||
highlight = "Directory",
|
highlight = "Filler",
|
||||||
|
|
||||||
|
-- text = function()
|
||||||
|
-- return vim.fn.getcwd()
|
||||||
|
-- end,
|
||||||
|
-- highlight = "Directory",
|
||||||
|
-- text_align = "left",
|
||||||
separator = "", -- use a "true" to enable the default, or set your own character
|
separator = "", -- use a "true" to enable the default, or set your own character
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -16,6 +16,19 @@ local options = {
|
|||||||
statusline = 1000,
|
statusline = 1000,
|
||||||
tabline = 1000,
|
tabline = 1000,
|
||||||
winbar = 1000,
|
winbar = 1000,
|
||||||
|
refresh_time = 16, -- ~60fps
|
||||||
|
events = {
|
||||||
|
"WinEnter",
|
||||||
|
"BufEnter",
|
||||||
|
"BufWritePost",
|
||||||
|
"SessionLoadPost",
|
||||||
|
"FileChangedShellPost",
|
||||||
|
"VimResized",
|
||||||
|
"Filetype",
|
||||||
|
"CursorMoved",
|
||||||
|
"CursorMovedI",
|
||||||
|
"ModeChanged",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
sections = {
|
sections = {
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ local options = {
|
|||||||
file_ignore_patterns = { "node_modules" },
|
file_ignore_patterns = { "node_modules" },
|
||||||
generic_sorter = require("telescope.sorters").get_generic_fuzzy_sorter,
|
generic_sorter = require("telescope.sorters").get_generic_fuzzy_sorter,
|
||||||
path_display = { "truncate" },
|
path_display = { "truncate" },
|
||||||
winblend = 0,
|
winblend = 0, -- transparency
|
||||||
border = {},
|
border = {},
|
||||||
borderchars = { "─", "│", "─", "│", "╭", "╮", "╯", "╰" },
|
borderchars = { "─", "│", "─", "│", "╭", "╮", "╯", "╰" },
|
||||||
color_devicons = true,
|
color_devicons = true,
|
||||||
|
|||||||
@@ -11,13 +11,8 @@ return {
|
|||||||
-- },
|
-- },
|
||||||
-- },
|
-- },
|
||||||
{
|
{
|
||||||
"oskarnurm/koda.nvim",
|
-- "dqnid/komau.vim",
|
||||||
lazy = false,
|
dir = "~/Documents/Code/komau.vim",
|
||||||
priority = 1000,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"dqnid/komau.vim",
|
|
||||||
-- dir = "~/Documents/Code/komau.vim",
|
|
||||||
opts = {
|
opts = {
|
||||||
style = "auto", -- "dark" | "light" | "auto" (uses &background)
|
style = "auto", -- "dark" | "light" | "auto" (uses &background)
|
||||||
transparent = false,
|
transparent = false,
|
||||||
|
|||||||
Reference in New Issue
Block a user