Tmux sessionizer
This commit is contained in:
Vendored
BIN
Binary file not shown.
@@ -1,10 +1,12 @@
|
||||
require('kanso').setup({
|
||||
foreground = {
|
||||
dark = "saturated", -- Use default colors in dark mode
|
||||
},
|
||||
transparent = true,
|
||||
-- foreground = {
|
||||
-- dark = "saturated", -- Use default colors in dark mode
|
||||
-- },
|
||||
overrides = function(colors)
|
||||
local theme = colors.theme
|
||||
return {
|
||||
Normal = { bg = "none" },
|
||||
NormalFloat = { bg = "none" },
|
||||
FloatBorder = { bg = "none" },
|
||||
FloatTitle = { bg = "none" },
|
||||
@@ -19,22 +21,5 @@ require('kanso').setup({
|
||||
}
|
||||
end,
|
||||
})
|
||||
--
|
||||
vim.cmd.colorscheme('kanso-zen')
|
||||
|
||||
vim.api.nvim_set_hl(0, 'Normal', { bg = 'none' })
|
||||
-- vim.api.nvim_set_hl(0, 'NormalFloat', { link = 'Normal' })
|
||||
-- vim.api.nvim_set_hl(0, "FloatBorder", { bg = "none" })
|
||||
vim.api.nvim_set_hl(0, 'StatusLine', { link = 'Normal' })
|
||||
vim.api.nvim_set_hl(0, 'StatusLineTerm', { link = 'Normal' })
|
||||
vim.api.nvim_set_hl(0, 'StatusLineNC', { link = 'Normal' })
|
||||
vim.api.nvim_set_hl(0, 'SignColumn', { link = 'Normal' })
|
||||
vim.api.nvim_set_hl(0, 'LineNrAbove', { link = 'NonText', bold = true })
|
||||
vim.api.nvim_set_hl(0, 'LineNrBelow', { link = 'NonText', bold = true })
|
||||
vim.api.nvim_set_hl(0, 'LineNr', { link = 'Normal' })
|
||||
vim.api.nvim_set_hl(0, 'FoldColumn', { link = 'Normal' })
|
||||
vim.api.nvim_set_hl(
|
||||
0,
|
||||
'CursorLineNr',
|
||||
{ bg = 'none', link = 'MatchParen', bold = true }
|
||||
)
|
||||
vim.cmd.colorscheme('kanso-zen')
|
||||
|
||||
@@ -61,6 +61,7 @@ vim.keymap.set('n', '<C-j>', ':NvimTmuxNavigateDown<CR>', { silent = true })
|
||||
vim.keymap.set('n', '<C-k>', ':NvimTmuxNavigateUp<CR>', { silent = true })
|
||||
vim.keymap.set('n', '<C-l>', ':NvimTmuxNavigateRight<CR>', { silent = true })
|
||||
vim.keymap.set('n', '<leader>xx', ':Trouble diagnostics toggle<cr>')
|
||||
vim.keymap.set('n', '<leader>zz', ':ZenMode<cr>')
|
||||
local dropbar_api = require("dropbar.api")
|
||||
vim.keymap.set("n", "<Leader>;", dropbar_api.pick, { desc = "Pick symbols in winbar" })
|
||||
vim.keymap.set("n", "[;", dropbar_api.goto_context_start, { desc = "Go to start of current context" })
|
||||
|
||||
@@ -9,9 +9,6 @@ vim.opt.expandtab = true -- Use spaces instead of tabs
|
||||
vim.api.nvim_create_autocmd('FileType', {
|
||||
callback = function(ev)
|
||||
local map = {
|
||||
-- c = { ts = 8, sw = 8, sts = 8, et = false },
|
||||
-- cpp = { ts = 8, sw = 8, sts = 8, et = false },
|
||||
-- go = { ts = 8, sw = 8, sts = 8, et = false },
|
||||
rust = { ts = 4, sw = 4, sts = 4 },
|
||||
lua = { ts = 4, sw = 4, sts = 4 },
|
||||
python = { ts = 4, sw = 4, sts = 4 },
|
||||
@@ -49,7 +46,7 @@ vim.opt.foldmethod = 'indent'
|
||||
vim.opt.foldcolumn = '1'
|
||||
vim.opt.foldenable = false
|
||||
vim.opt.shortmess = 'aF' -- abbreviates messages and prevents file name being echoed when opened
|
||||
vim.opt.ignorecase = true -- ignore cases when searching
|
||||
vim.opt.ignorecase = false -- ignore cases when searching
|
||||
vim.opt.smartcase = true -- However if we use a capital in search string we then consider case-sensitivity, ignorecase is disabled
|
||||
vim.opt.smartindent = false -- smarter indentation
|
||||
vim.opt.smarttab = true -- make tab behaviour smarter
|
||||
|
||||
@@ -37,5 +37,7 @@ vim.pack.add({
|
||||
{ src = 'https://github.com/rcarriga/nvim-notify' },
|
||||
{ src = 'https://github.com/folke/trouble.nvim' },
|
||||
{ src = 'https://github.com/brianhuster/live-preview.nvim' },
|
||||
{ src = 'https://github.com/m4xshen/hardtime.nvim' },
|
||||
{ src = 'https://github.com/Bekaboo/dropbar.nvim' },
|
||||
{ src = 'https://github.com/folke/zen-mode.nvim' },
|
||||
})
|
||||
|
||||
@@ -28,6 +28,9 @@ require('nvim-tmux-navigation').setup({
|
||||
disable_when_zoomed = true, -- defaults to false
|
||||
})
|
||||
|
||||
-- require("zen-mode").toggle({
|
||||
-- })
|
||||
|
||||
require('blink.cmp').setup({
|
||||
completion = {
|
||||
documentation = {
|
||||
@@ -62,7 +65,6 @@ require('nvim-ts-autotag').setup({
|
||||
})
|
||||
|
||||
require('trouble').setup({})
|
||||
-- require('dropbar').setup({})
|
||||
require("telescope").setup({
|
||||
defaults = {
|
||||
prompt_prefix = " ", -- Changes the search icon/prompt prefix
|
||||
@@ -82,3 +84,4 @@ require("telescope").setup({
|
||||
},
|
||||
},
|
||||
})
|
||||
require("hardtime").setup()
|
||||
|
||||
@@ -307,47 +307,9 @@ require('incline').setup({
|
||||
local icon, color = require("nvim-web-devicons").get_icon_color(filename)
|
||||
return { { icon, guifg = color }, { " " }, { filename } }
|
||||
end,
|
||||
-- window = {
|
||||
-- padding = 0,
|
||||
-- margin = { horizontal = 0 },
|
||||
-- options = {
|
||||
-- -- Reset winhl so it doesn't force total transparency
|
||||
-- winhl = 'Normal:InclineNormal',
|
||||
-- },
|
||||
-- },
|
||||
-- render = function(props)
|
||||
-- local filename =
|
||||
-- vim.fn.fnamemodify(vim.api.nvim_buf_get_name(props.buf), ':t')
|
||||
-- if filename == '' then
|
||||
-- filename = '[No Name]'
|
||||
-- end
|
||||
-- local ft_icon, ft_color =
|
||||
-- require('nvim-web-devicons').get_icon_color(filename)
|
||||
-- local modified = vim.bo[props.buf].modified
|
||||
--
|
||||
-- return {
|
||||
-- ft_icon and {
|
||||
-- ' ',
|
||||
-- ft_icon,
|
||||
-- ' ',
|
||||
-- guibg = ft_color,
|
||||
-- guifg = require('incline.helpers').contrast_color(ft_color),
|
||||
-- -- guibg = ft_color,
|
||||
-- -- guifg = require('incline.helpers').contrast_color(ft_color),
|
||||
-- } or '',
|
||||
-- -- Wrap the text and padding inside a structural block linked to 'CursorLine'
|
||||
-- {
|
||||
-- ' ',
|
||||
-- { filename, gui = modified and 'bold,italic' or 'bold' },
|
||||
-- ' ',
|
||||
-- group = 'CursorLine',
|
||||
-- },
|
||||
-- }
|
||||
-- end,
|
||||
})
|
||||
require('noice').setup({
|
||||
lsp = {
|
||||
-- override markdown rendering so that **cmp** and other plugins use **Treesitter**
|
||||
override = {
|
||||
['vim.lsp.util.convert_input_to_markdown_lines'] = true,
|
||||
['vim.lsp.util.stylize_markdown'] = true,
|
||||
|
||||
@@ -13,6 +13,10 @@
|
||||
"rev": "808ba31cde89aec8833e9789f5e04557cd31c9e1",
|
||||
"src": "https://github.com/Bekaboo/dropbar.nvim"
|
||||
},
|
||||
"hardtime.nvim": {
|
||||
"rev": "5165840fe680eab46de1fc6dbff48f148fdcf018",
|
||||
"src": "https://github.com/m4xshen/hardtime.nvim"
|
||||
},
|
||||
"incline.nvim": {
|
||||
"rev": "debd628e9395f7a9da57bdc31ce75ca6b40a880b",
|
||||
"src": "https://github.com/b0o/incline.nvim"
|
||||
@@ -94,6 +98,10 @@
|
||||
"undotree": {
|
||||
"rev": "6fa6b57cda8459e1e4b2ca34df702f55242f4e4d",
|
||||
"src": "https://github.com/mbbill/undotree"
|
||||
},
|
||||
"zen-mode.nvim": {
|
||||
"rev": "8564ce6d29ec7554eb9df578efa882d33b3c23a7",
|
||||
"src": "https://github.com/folke/zen-mode.nvim"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user