Various items (committing to test forgejo)
This commit is contained in:
parent
45e44ee30a
commit
e5b0b7256e
3 changed files with 23 additions and 17 deletions
|
@ -36,17 +36,17 @@ vim.g.netrw_winsize = 25
|
|||
vim.g.netrw_liststyle = 3 -- tree style listing
|
||||
|
||||
-- Escape exits terminal mode
|
||||
vim.api.nvim_set_keymap("t", "<Esc>", "<c-\\><c-n>", { noremap = true })
|
||||
vim.keymap.set("t", "<Esc>", "<c-\\><c-n>", { noremap = true })
|
||||
|
||||
-- Sane vim split naviagation (via Gaslight blog)
|
||||
vim.api.nvim_set_keymap("n", "<c-j>", "<c-w>j", { noremap = true })
|
||||
vim.api.nvim_set_keymap("n", "<c-k>", "<c-w>k", { noremap = true })
|
||||
vim.api.nvim_set_keymap("n", "<c-h>", "<c-w>h", { noremap = true })
|
||||
vim.api.nvim_set_keymap("n", "<c-l>", "<c-w>l", { noremap = true })
|
||||
vim.api.nvim_set_keymap("t", "<c-j>", "<c-\\><c-n><c-w>j", { noremap = true })
|
||||
vim.api.nvim_set_keymap("t", "<c-k>", "<c-\\><c-n><c-w>k", { noremap = true })
|
||||
vim.api.nvim_set_keymap("t", "<c-h>", "<c-\\><c-n><c-w>h", { noremap = true })
|
||||
vim.api.nvim_set_keymap("t", "<c-l>", "<c-\\><c-n><c-w>l", { noremap = true })
|
||||
vim.keymap.set("n", "<c-j>", "<c-w>j", { noremap = true })
|
||||
vim.keymap.set("n", "<c-k>", "<c-w>k", { noremap = true })
|
||||
vim.keymap.set("n", "<c-h>", "<c-w>h", { noremap = true })
|
||||
vim.keymap.set("n", "<c-l>", "<c-w>l", { noremap = true })
|
||||
vim.keymap.set("t", "<c-j>", "<c-\\><c-n><c-w>j", { noremap = true })
|
||||
vim.keymap.set("t", "<c-k>", "<c-\\><c-n><c-w>k", { noremap = true })
|
||||
vim.keymap.set("t", "<c-h>", "<c-\\><c-n><c-w>h", { noremap = true })
|
||||
vim.keymap.set("t", "<c-l>", "<c-\\><c-n><c-w>l", { noremap = true })
|
||||
|
||||
vim.keymap.set({"i", "n", "t", "v"}, "<F10>", function () vim.cmd("nohlsearch") end)
|
||||
|
||||
|
@ -91,6 +91,7 @@ require("lazy").setup({
|
|||
"hrsh7th/nvim-cmp",
|
||||
"hrsh7th/cmp-vsnip",
|
||||
"hrsh7th/vim-vsnip",
|
||||
"hrsh7th/cmp-nvim-lsp-signature-help",
|
||||
"tpope/vim-fugitive",
|
||||
"lewis6991/gitsigns.nvim",
|
||||
"tpope/vim-surround",
|
||||
|
@ -208,6 +209,12 @@ vim.api.nvim_create_autocmd('LspAttach', {
|
|||
-- Set up nvim-cmp.
|
||||
local cmp = require'cmp'
|
||||
|
||||
cmp.setup({
|
||||
sources = {
|
||||
{ name = 'nvim_lsp_signature_help' }
|
||||
}
|
||||
})
|
||||
|
||||
cmp.setup({
|
||||
snippet = {
|
||||
-- REQUIRED - you must specify a snippet engine
|
||||
|
@ -216,8 +223,8 @@ cmp.setup({
|
|||
end,
|
||||
},
|
||||
window = {
|
||||
-- completion = cmp.config.window.bordered(),
|
||||
-- documentation = cmp.config.window.bordered(),
|
||||
completion = cmp.config.window.bordered(),
|
||||
documentation = cmp.config.window.bordered(),
|
||||
},
|
||||
mapping = cmp.mapping.preset.insert({
|
||||
['<C-b>'] = cmp.mapping.scroll_docs(-4),
|
||||
|
|
|
@ -47,9 +47,7 @@ keep-articles-days 45
|
|||
macro c set browser "xterm -e mpv --vid=no -- %u &"; one; set browser qutebrowser
|
||||
max-items 4096
|
||||
notify-program "/usr/bin/notify-send"
|
||||
urls-source "ttrss"
|
||||
ttrss-url "https://rss.theadamcooper.com/"
|
||||
ttrss-login "adam"
|
||||
ttrss-passwordeval "secret-tool lookup service ttrss"
|
||||
ttrss-flag-star "s"
|
||||
ttrss-flag-publish "p"
|
||||
urls-source "freshrss"
|
||||
freshrss-url "https://rss.theadamcooper.com/api/greader.php"
|
||||
freshrss-login "adam"
|
||||
freshrss-passwordeval "secret-tool lookup service freshrss"
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
alias exi='eza --icons --group -al'
|
||||
alias fgj='tea'
|
||||
alias qb='QT_SCALE_FACTOR=1.5 /usr/bin/qutebrowser &'
|
||||
|
|
Loading…
Reference in a new issue