Skip to content

Commit

Permalink
qutebrowser toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
ediw8311xht committed Oct 10, 2024
1 parent 8e999c5 commit 4e46897
Show file tree
Hide file tree
Showing 9 changed files with 160 additions and 157 deletions.
4 changes: 4 additions & 0 deletions ctpv/config
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ preview log text/x-log {{
pygmentize "${f}"
}}

preview lisp .txt .lisp .fasl {{
highlight "${f}" --stdout --out-format="ansi"
}}

preview jshtml .js .json .html {{
highlight "${f}" --stdout --out-format="ansi"
}}
Expand Down
1 change: 1 addition & 0 deletions lf/lfrc
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ map <gt>h cd ~/
map <gt>i cd ~/Documents/INFORMATION/
map <gt>l cd ~/MyLibrary/
map <gt>p cd ~/Pictures/
map <gt>t cd ~/TEST/
map <gt>v cd ~/Videos/

map <lt>t set ratios 1:1:1:1
Expand Down
7 changes: 4 additions & 3 deletions nvim/autocmd.vim
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@ autocmd BufNewFile *.cpp 0read ${HOME}/.config/nvim/language_specific/tem
autocmd BufNewFile,BufRead ~/.bashrc setfiletype bash
autocmd BufNewFile,BufRead ~/bashrc_files/* setfiletype bash
autocmd BufNewFile,BufRead *.sh setfiletype bash
autocmd BufNewFile,BufRead ${HOME}/.config/polybar/*.ini setfiletype dosini
autocmd BufNewFile,BufRead ${HOME}/.config/polybar/*/*.ini setfiletype dosini
autocmd BufNewFile,BufRead ${HOME}/.config/polybar/*.ini setfiletype dosini
autocmd BufNewFile,BufRead ${HOME}/.config/polybar/*/*.ini setfiletype dosini
autocmd BufNewFile,BufRead *.kalker setfiletype kalker
autocmd BufNewFile,BufRead ${HOME}/.config/i3/* setfiletype i3
autocmd BufNewFile,BufRead ${HOME}/.config/i3/* setfiletype i3
autocmd BufNewFile,BufRead *.ex,*.exs setfiletype elixir
autocmd BufNewFile,BufRead *.schema setfiletype sql

autocmd Filetype cpp source ${HOME}/.config/nvim/language_specific/cpp.vim
autocmd Filetype css source ${HOME}/.config/nvim/language_specific/css.vim
Expand Down
3 changes: 2 additions & 1 deletion nvim/functions.vim
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,14 @@ fu! CorrectColors()
hi NonText gui=NONE guibg=NONE guifg=#00FF00
hi Normal gui=NONE guibg=NONE guifg=#D0D0D0
hi Search gui=NONE guibg=#FF00FF guifg=#000000
hi StatusLine gui=NONE guibg=NONE guifg=#009900
hi StatusLine gui=NONE guibg=NONE guifg=#229922
hi StatusLineNC gui=NONE guibg=NONE guifg=#999999
hi TabLine gui=NONE guibg=NONE guifg=#999999
hi TabLineSel gui=bold guibg=NONE guifg=#00FF00
hi TermCursor guibg=NONE guifg=#00AA00
hi HLspStatus gui=NONE guibg=NONE guifg=#00FF00
hi HStatusFullFile gui=NONE guibg=NONE guifg=#999999
hi WinSeparator gui=NONE guibg=NONE guifg=#009900
"------------------------SPELLING---------------------------#
hi SpellBad gui=undercurl guisp=#FF0000 guibg=NONE guifg=#AAAAAA
hi ModeMsg guifg=#000000 guibg=#009900 gui=NONE cterm=NONE
Expand Down
4 changes: 3 additions & 1 deletion nvim/init.vim
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ set nowrap
set number
set relativenumber
set ruler
set signcolumn=yes:2
set signcolumn=auto:2-9
set splitright
set t_Co=256
"set termguicolors
Expand Down Expand Up @@ -87,6 +87,8 @@ set cul
set nocuc
set cedit=\<C-c>
set statuscolumn=
"set laststatus=3
"set stc=%s%r%=\ %l\ \|\
"Make sure vimwiki doesn't run on markdown not in ~/vimwiki dir.
let g:vimwiki_global_ext = 0

Expand Down
209 changes: 105 additions & 104 deletions nvim/lua/base.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@

local HOME = os.getenv("HOME")
local lsp_status = require('lsp-status')
lsp_status.register_progress()

local lspconfig = require('lspconfig')
local luasnip = require('luasnip')
Expand All @@ -16,85 +15,96 @@ local marks = require('marks')
local lspstatus = require('lsp-status')
local cmp_capabilities = require('cmp_nvim_lsp').default_capabilities()



marks.setup({
default_mappings = true,
builtin_marks = {".", "<", ">", "^"},
cyclic = true,
refresh_interval = 400,
sign_priority = {lower=10, uppwer=15, built=8, bookmark=20 },
-- excluded_filetypes = {},
excluded_buftypes = {
"terminal",
"nui",
},
mappings = {
set_next = "m,",
next = "m]",
prev = "m[",
preview = "m:",
delete_line = "dml",
delete_buf = "dmf",
annotate = "mk",
toggle = "m'",
}
})
lspstatus.config({
indicator_ok = 'Ok',
})
lsp_status.register_progress()
-- local hologram = require('hologram')
-- local lsp_lines = require("lsp_lines")


-- Disable virtual_text since it's redundant due to lsp_lines.
-- vim.diagnostic.config({
-- virtual_text = false,
-- })
-- lsp_lines.setup({})

-- require('hologram').setup{
-- auto_display = true -- WIP automatic markdown image display, may be prone to breaking
-- }

which_key.setup({
-- notify = false,
win = {
no_overlap = false,
border = "none", -- none, single, double, shadow
padding = {0, 0},
wo = {
winblend = 25, -- value between 0-100 0 for fully opaque and 100 for fully transparent
}
},
win = {
no_overlap = false,
border = "none", -- none, single, double, shadow
padding = {0, 0},
wo = {
winblend = 5, -- value between 0-100 0 for fully opaque and 100 for fully transparent
}
},
layout = {
height = { min = 4, max = 50 }, -- min and max height of the columns
width = { min = 4, max = 40 }, -- min and max width of the columns
width = { min = 4, max = 70 }, -- min and max width of the columns
spacing = 1, -- spacing between columns
align = "left", -- align columns left, center or right
},
icons = {
breadcrumb = ">", -- symbol used in the command line area that shows your active key combo
separator = "|", -- symbol used between a key and it's label
group = "+", -- symbol prepended to a group
ellipsis = "",
-- set to false to disable all mapping icons,
-- both those explicitely added in a mapping
-- and those from rules
mappings = false,
rules = {},
colors = true,
-- used by key format
keys = {
BS = '󰁮 ',
Space = '<leader>',
Tab = '<Tab>',
Up = '<up>',
Down = '<down>',
Left = '<left>',
Right = '<right>',
C = '^',
M = '󰘵 ',
D = '󰘳 ',
S = '<S>',
CR = '<CR>',
Esc = '󱊷 ',
ScrollWheelDown = '󱕐 ',
ScrollWheelUp = '󱕑 ',
NL = '󰌑 ',
F1 = '󱊫 ',
F2 = '󱊬 ',
F3 = '󱊭 ',
F4 = '󱊮 ',
F5 = '󱊯 ',
F6 = '󱊰 ',
F7 = '󱊱 ',
F8 = '󱊲 ',
F9 = '󱊳 ',
F10 = '󱊴 ',
F11 = '󱊵 ',
F12 = '󱊶 ',
},
icons = {
breadcrumb = "> ", -- symbol used in the command line area that shows your active key combo
separator = "|", -- symbol used between a key and it's label
group = "+", -- symbol prepended to a group
ellipsis = "",
-- set to false to disable all mapping icons,
-- both those explicitely added in a mapping
-- and those from rules
mappings = false,
rules = {},
colors = true,
-- used by key format
keys = {
BS = '󰁮 ',
Space = '<leader>',
Tab = '<Tab>',
Up = '<up>',
Down = '<down>',
Left = '<left>',
Right = '<right>',
C = '^',
M = '󰘵 ',
D = '󰘳 ',
S = '<S>',
CR = '<CR>',
Esc = '󱊷 ',
ScrollWheelDown = '󱕐 ',
ScrollWheelUp = '󱕑 ',
NL = '󰌑 ',
F1 = '󱊫 ',
F2 = '󱊬 ',
F3 = '󱊭 ',
F4 = '󱊮 ',
F5 = '󱊯 ',
F6 = '󱊰 ',
F7 = '󱊱 ',
F8 = '󱊲 ',
F9 = '󱊳 ',
F10 = '󱊴 ',
F11 = '󱊵 ',
F12 = '󱊶 ',
},
},
})
luasnip.setup({})
lspsaga.setup({})
cmp.setup({
-- performance = {
-- throttle = 0.3,
Expand Down Expand Up @@ -127,44 +137,6 @@ cmp.setup({
{ name = 'dotenv'},
})
})
-- cmp.setup.cmdline({ '/', '?' }, {
-- mapping = cmp.mapping.preset.cmdline(),
-- sources = {
-- { name = 'buffer' }
-- }
-- })
-- cmp.setup.cmdline(':', {
-- mapping = cmp.mapping.preset.cmdline(),
-- sources = cmp.config.sources({
-- { name = 'path' }
-- }, {
-- { name = 'cmdline' }
-- }),
-- matching = { disallow_symbol_nonprefix_matching = false }
-- })
marks.setup({
default_mappings = true,
builtin_marks = {".", "<", ">", "^"},
cyclic = true,
refresh_interval = 400,
sign_priority = {lower=10, uppwer=15, built=8, bookmark=20 },
-- excluded_filetypes = {},
excluded_buftypes = {
"terminal",
"nui",
},
mappings = {
set_next = "m,",
next = "m]",
prev = "m[",
preview = "m:",
delete_line = "md",
delete_buf = "mD",
annotate = "ma",
toggle = "mt",
}
})
lspsaga.setup({})
gitsigns.setup({
signs = {
add = { text = '+' },
Expand Down Expand Up @@ -328,3 +300,32 @@ lspconfig.ccls.setup({
-- };
-- }

-- cmp.setup.cmdline({ '/', '?' }, {
-- mapping = cmp.mapping.preset.cmdline(),
-- sources = {
-- { name = 'buffer' }
-- }
-- })
-- cmp.setup.cmdline(':', {
-- mapping = cmp.mapping.preset.cmdline(),
-- sources = cmp.config.sources({
-- { name = 'path' }
-- }, {
-- { name = 'cmdline' }
-- }),
-- matching = { disallow_symbol_nonprefix_matching = false }
-- })
-- local hologram = require('hologram')
-- local lsp_lines = require("lsp_lines")


-- Disable virtual_text since it's redundant due to lsp_lines.
-- vim.diagnostic.config({
-- virtual_text = false,
-- })
-- lsp_lines.setup({})

-- require('hologram').setup{
-- auto_display = true -- WIP automatic markdown image display, may be prone to breaking
-- }

4 changes: 2 additions & 2 deletions nvim/lua/mappings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ local regular_mappings={
{ 'n', false, '', 'ZG', ':wqall<CR>' },
{ 'n', false, '', '\\', '/\\V\\c' },
{ 'n', false, '', '\\|', '?\\V\\c' },
{ 'n', false, '', '~', '@=(foldlevel(\'.\')?\'za\':"<Space>")<CR>' },
{ 'n', false, '', '`', '@=(foldlevel(\'.\')?\'za\':"<Space>")<CR>' },
{ '', false, '', ',;', ',' },
{ '', false, '', 'x', '"xx' },
{ 't', true, '', '<C-w>', '<C-\\><C-n>' },
{ 'v', false, '', '<C-s>', ':s/\\%V\\v' },
{ 'v', false, '', '~', 'zf' },
{ 'v', false, '', '`', 'zf' },
}
local leader_mappings={
{ 'n', false, 'Prev Tab', 'tb' , ':tabmove -1<esc>' },
Expand Down
Loading

0 comments on commit 4e46897

Please sign in to comment.