324 current 2025-02-15 01:00:19 25.05.20241217.d3c42f1 6.6.66 *
This commit is contained in:
@@ -129,6 +129,13 @@
|
|||||||
# tab open behavior
|
# tab open behavior
|
||||||
"browser.search.openintab" = true;
|
"browser.search.openintab" = true;
|
||||||
"browser.search.suggest.enabled" = false; # fuck you search, wikipedia is my default.
|
"browser.search.suggest.enabled" = false; # fuck you search, wikipedia is my default.
|
||||||
|
|
||||||
|
"browser.urlbar.suggest.topsites" = false;
|
||||||
|
"browser.urlbar.suggest.searches" = false;
|
||||||
|
"browser.urlbar.suggest.history" = false;
|
||||||
|
"browser.urlbar.suggest.engines" = false;
|
||||||
|
"browser.urlbar.suggest.openpage" = false;
|
||||||
|
"browser.urlbar.suggest.bookmark" = false;
|
||||||
"browser.link.open_newwindow" = 3;
|
"browser.link.open_newwindow" = 3;
|
||||||
"browser.link.open_newwindow.restriction" = 0;
|
"browser.link.open_newwindow.restriction" = 0;
|
||||||
|
|
||||||
@@ -297,7 +304,7 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
programs.librewolf = {
|
programs.librewolf = {
|
||||||
enable = true;
|
enable = false; # sorry
|
||||||
settings = {
|
settings = {
|
||||||
"app.update.auto" = false;
|
"app.update.auto" = false;
|
||||||
# "browser.startup.homepage" = "https://lobste.rs";
|
# "browser.startup.homepage" = "https://lobste.rs";
|
||||||
|
|||||||
@@ -63,6 +63,11 @@
|
|||||||
plugin = barbar-nvim;
|
plugin = barbar-nvim;
|
||||||
config = toLuaFile ./plugins/barbar.lua;
|
config = toLuaFile ./plugins/barbar.lua;
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
# the most helpful thing is this guy: https://ejmastnak.com/tutorials/vim-latex/luasnip/
|
||||||
|
plugin = luasnip;
|
||||||
|
config = toLuaFile ./luasnip/luasnip.lua;
|
||||||
|
}
|
||||||
{
|
{
|
||||||
plugin = lualine-nvim;
|
plugin = lualine-nvim;
|
||||||
config = toLuaFile ./plugins/lualine.lua;
|
config = toLuaFile ./plugins/lualine.lua;
|
||||||
|
|||||||
27
home/programs/nvim/luasnip/luasnip.lua
Normal file
27
home/programs/nvim/luasnip/luasnip.lua
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
require("luasnip.loaders.from_lua").load({paths = "./snippets/"})
|
||||||
|
|
||||||
|
vim.cmd[[
|
||||||
|
" Use Tab to expand and jump through snippets
|
||||||
|
imap <silent><expr> <Tab> luasnip#expand_or_jumpable() ? '<Plug>luasnip-expand-or-jump' : '<Tab>'
|
||||||
|
smap <silent><expr> <Tab> luasnip#jumpable(1) ? '<Plug>luasnip-jump-next' : '<Tab>'
|
||||||
|
|
||||||
|
" Use Shift-Tab to jump backwards through snippets
|
||||||
|
imap <silent><expr> <S-Tab> luasnip#jumpable(-1) ? '<Plug>luasnip-jump-prev' : '<S-Tab>'
|
||||||
|
smap <silent><expr> <S-Tab> luasnip#jumpable(-1) ? '<Plug>luasnip-jump-prev' : '<S-Tab>'
|
||||||
|
|
||||||
|
" Expand or jump in insert mode
|
||||||
|
imap <silent><expr> <Tab> luasnip#expand_or_jumpable() ? '<Plug>luasnip-expand-or-jump' : '<Tab>'
|
||||||
|
|
||||||
|
" Jump forward through tabstops in visual mode
|
||||||
|
smap <silent><expr> <Tab> luasnip#jumpable(1) ? '<Plug>luasnip-jump-next' : '<Tab>'
|
||||||
|
]]
|
||||||
|
|
||||||
|
require("luasnip").config.set_config({ -- Setting LuaSnip config
|
||||||
|
|
||||||
|
-- Enable autotriggered snippets
|
||||||
|
enable_autosnippets = true,
|
||||||
|
|
||||||
|
-- Use Tab (or some other key if you prefer) to trigger visual selection
|
||||||
|
store_selection_keys = "<Tab>",
|
||||||
|
})
|
||||||
|
|
||||||
16
home/programs/nvim/luasnip/snippets/all.lua
Normal file
16
home/programs/nvim/luasnip/snippets/all.lua
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
return {
|
||||||
|
-- Example: how to set snippet parameters
|
||||||
|
require("luasnip").snippet(
|
||||||
|
{ -- Table 1: snippet parameters
|
||||||
|
trig="hi",
|
||||||
|
dscr="An autotriggering snippet that expands 'hi' into 'Hello, world!'",
|
||||||
|
regTrig=false,
|
||||||
|
priority=100,
|
||||||
|
snippetType="autosnippet"
|
||||||
|
},
|
||||||
|
{ -- Table 2: snippet nodes (don't worry about this for now---we'll cover nodes shortly)
|
||||||
|
t("Hello, world!"), -- A single text node
|
||||||
|
}
|
||||||
|
-- Table 3, the advanced snippet options, is left blank.
|
||||||
|
),
|
||||||
|
}
|
||||||
@@ -194,6 +194,8 @@ alias zshrc="nvim /home/synchronous/nix-cfg/home/programs/zsh/zshrc"
|
|||||||
alias sxhkdrc="nvim /home/synchronous/nix-cfg/home/programs/sxhkd/sxhkdrc"
|
alias sxhkdrc="nvim /home/synchronous/nix-cfg/home/programs/sxhkd/sxhkdrc"
|
||||||
alias programs="cd /home/synchronous/nix-cfg/home/programs"
|
alias programs="cd /home/synchronous/nix-cfg/home/programs"
|
||||||
|
|
||||||
|
alias nrc = "cd /home/synchronous/nix-cfg/home/programs/nvim"
|
||||||
|
|
||||||
|
|
||||||
# ------------------- fzf configuration
|
# ------------------- fzf configuration
|
||||||
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
|
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
|
||||||
|
|||||||
Reference in New Issue
Block a user