Compare commits
3
Commits
4a016cca6a
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9702d7b598 | ||
|
|
20a0d5785d | ||
|
|
727bd2dbae |
+2
-1
@@ -67,7 +67,8 @@ n ()
|
|||||||
|
|
||||||
# The command builtin allows one to alias nnn to n, if desired, without
|
# The command builtin allows one to alias nnn to n, if desired, without
|
||||||
# making an infinitely recursive alias
|
# making an infinitely recursive alias
|
||||||
command nnn -C -a "$@"
|
# command nnn -C -a "$@"
|
||||||
|
NNN_COLORS=44444444 command nnn -D -a "$@"
|
||||||
|
|
||||||
[ ! -f "$NNN_TMPFILE" ] || {
|
[ ! -f "$NNN_TMPFILE" ] || {
|
||||||
. "$NNN_TMPFILE"
|
. "$NNN_TMPFILE"
|
||||||
|
|||||||
@@ -7,3 +7,5 @@ map cmd+ctrl+l no_op
|
|||||||
|
|
||||||
# macOS icon: kitty.app.icns links to the system Terminal icon.
|
# macOS icon: kitty.app.icns links to the system Terminal icon.
|
||||||
# Kitty applies this automatically at startup.
|
# Kitty applies this automatically at startup.
|
||||||
|
allow_remote_control socket-only
|
||||||
|
listen_on unix:${TMPDIR}/kitty
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
# Default Dark — matches ghostty/.config/ghostty/themes/default-dark.
|
# Default Dark — matches ghostty/.config/ghostty/themes/default-dark.
|
||||||
background #000000
|
background #111111
|
||||||
foreground #d8d8d8
|
foreground #d8d8d8
|
||||||
selection_background #383838
|
selection_background #383838
|
||||||
selection_foreground #111111
|
selection_foreground #111111
|
||||||
|
|||||||
@@ -13,8 +13,8 @@ vim.api.nvim_set_keymap('n', '<C-f>', ':NnnPicker %:p:h<CR>', { noremap = true }
|
|||||||
vim.api.nvim_set_keymap('t', '<C-f>', '<cmd>NnnPicker %:p:h<CR>', { noremap = true })
|
vim.api.nvim_set_keymap('t', '<C-f>', '<cmd>NnnPicker %:p:h<CR>', { noremap = true })
|
||||||
|
|
||||||
-- nvim-tree
|
-- nvim-tree
|
||||||
vim.api.nvim_set_keymap('n', '<C-b>', '<cmd>NvimTreeToggle <CR>', { noremap = true })
|
-- vim.api.nvim_set_keymap('n', '<C-b>', '<cmd>NvimTreeToggle <CR>', { noremap = true })
|
||||||
vim.api.nvim_set_keymap('n', '<leader>b', ':NvimTreeResize ', { noremap = true })
|
-- vim.api.nvim_set_keymap('n', '<leader>b', ':NvimTreeResize ', { noremap = true })
|
||||||
|
|
||||||
-- Telescope
|
-- Telescope
|
||||||
vim.keymap.set('n', '<C-l>', builtin.find_files, {})
|
vim.keymap.set('n', '<C-l>', builtin.find_files, {})
|
||||||
|
|||||||
@@ -153,7 +153,7 @@ require('nnn').setup({
|
|||||||
picker = {
|
picker = {
|
||||||
cmd = "nnn -C",
|
cmd = "nnn -C",
|
||||||
-- Fill the editor even when opening from an existing file or split.
|
-- Fill the editor even when opening from an existing file or split.
|
||||||
style = { width = 1, height = 1, xoffset = 0, yoffset = 0, border = "none" },
|
style = { width = 1, height = 1, xoffset = 0, yoffset = 0, border = "single" },
|
||||||
fullscreen = true,
|
fullscreen = true,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
@@ -186,7 +186,8 @@ require('telescope').setup({
|
|||||||
width = function(_, columns) return columns end,
|
width = function(_, columns) return columns end,
|
||||||
height = function(_, _, lines) return lines end,
|
height = function(_, _, lines) return lines end,
|
||||||
},
|
},
|
||||||
border = false,
|
border = true,
|
||||||
|
borderchars = { "─", "│", "─", "│", "┌", "┐", "┘", "└" },
|
||||||
file_ignore_patterns = {
|
file_ignore_patterns = {
|
||||||
"%.git/",
|
"%.git/",
|
||||||
"node_modules/",
|
"node_modules/",
|
||||||
|
|||||||
@@ -19,6 +19,9 @@ vim.o.splitright = true
|
|||||||
vim.o.maxmempattern = 100000
|
vim.o.maxmempattern = 100000
|
||||||
vim.g.clipboard = "osc52"
|
vim.g.clipboard = "osc52"
|
||||||
|
|
||||||
|
-- Leave room beside the completion menu for documentation.
|
||||||
|
vim.o.pummaxwidth = 50
|
||||||
|
|
||||||
function _G.org_foldexpr()
|
function _G.org_foldexpr()
|
||||||
local stars = vim.fn.getline(vim.v.lnum):match("^(%*+)%s")
|
local stars = vim.fn.getline(vim.v.lnum):match("^(%*+)%s")
|
||||||
return stars and (">" .. #stars) or "="
|
return stars and (">" .. #stars) or "="
|
||||||
@@ -61,8 +64,8 @@ vim.cmd([[
|
|||||||
|
|
||||||
syntax on
|
syntax on
|
||||||
set notermguicolors
|
set notermguicolors
|
||||||
set pumborder=rounded
|
set pumborder=single
|
||||||
set winborder=none
|
set winborder=single
|
||||||
colorscheme default
|
colorscheme default
|
||||||
]])
|
]])
|
||||||
|
|
||||||
@@ -82,3 +85,21 @@ vim.cmd([[
|
|||||||
-- colorscheme default
|
-- colorscheme default
|
||||||
-- ]])
|
-- ]])
|
||||||
-- autocmd ColorScheme * highlight Folded cterm=italic ctermfg=lightgray ctermbg=18
|
-- autocmd ColorScheme * highlight Folded cterm=italic ctermfg=lightgray ctermbg=18
|
||||||
|
|
||||||
|
-- The native completion documentation popup does not inherit 'winborder'.
|
||||||
|
vim.api.nvim_create_autocmd("CompleteChanged", {
|
||||||
|
group = vim.api.nvim_create_augroup("CompletionDocBorder", { clear = true }),
|
||||||
|
callback = function()
|
||||||
|
local function set_border()
|
||||||
|
-- Neovim returns preview_winid together with the selected item.
|
||||||
|
local win = vim.fn.complete_info({ "selected" }).preview_winid
|
||||||
|
if win and win > 0 and vim.api.nvim_win_is_valid(win) then
|
||||||
|
vim.api.nvim_win_set_config(win, { border = "single" })
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
vim.schedule(set_border)
|
||||||
|
-- LSP documentation can arrive after the selection changes.
|
||||||
|
vim.defer_fn(set_border, 300)
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user