prep roundcube, from ktiu.net, nvim stuff
This commit is contained in:
parent
d4474ef5ce
commit
40539ae163
5 changed files with 56 additions and 14 deletions
|
|
@ -53,6 +53,10 @@
|
|||
end
|
||||
end
|
||||
|
||||
function diary --description 'Create or edit today\'s diary entry'
|
||||
nvim -c "call Diary()"
|
||||
end
|
||||
|
||||
set -U fish_prompt_pwd_dir_length 0
|
||||
|
||||
function fish_prompt --description "Write out the prompt"
|
||||
|
|
|
|||
|
|
@ -3,10 +3,13 @@
|
|||
{
|
||||
programs.msmtp = {
|
||||
enable = true;
|
||||
configContent = ''
|
||||
configContent = lib.mkOrder 1200 ''
|
||||
defaults
|
||||
logfile ${config.xdg.stateHome}/msmtp/msmtp.log
|
||||
port 587
|
||||
|
||||
account ktiu : t9e
|
||||
from *@ktiu.net
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
@ -136,7 +139,7 @@
|
|||
};
|
||||
msmtp = {
|
||||
enable = true;
|
||||
extraConfig.from = "*@(ktiu.net|t9e.me)";
|
||||
extraConfig.from = "*@t9e.me";
|
||||
};
|
||||
passwordCommand = "pass mail/arielle.ktiu.net";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -23,6 +23,9 @@ set splitright
|
|||
set tabstop=2
|
||||
set updatetime=300
|
||||
|
||||
" set foldmethod=expr
|
||||
" set foldexpr=nvim_treesitter#foldexpr()
|
||||
|
||||
let g:netrw_liststyle = 3
|
||||
let g:netrw_fastbrowse = 0
|
||||
|
||||
|
|
@ -48,8 +51,17 @@ xnoremap i% GoggV
|
|||
onoremap <silent> i% :normal vi%<return>
|
||||
|
||||
function CreateNote(title)
|
||||
execute "file ~/notes/" . strftime("%Y-%m-%d") . "_" . join(split(tolower(a:title)), "_") . ".md"
|
||||
execute "set ft=markdown"
|
||||
execute "normal! i" . a:title
|
||||
execute "normal V\<tab>yaml_note\<tab>"
|
||||
execute "VimwikiIndex"
|
||||
execute "VimwikiGoto " . a:title
|
||||
endfunction
|
||||
|
||||
function Diary()
|
||||
execute "VimwikiMakeDiaryNote"
|
||||
endfunction
|
||||
|
||||
" function CreateNote(title)
|
||||
" execute "file ~/notes/" . strftime("%Y-%m-%d") . "_" . join(split(tolower(a:title)), "_") . ".md"
|
||||
" execute "set ft=markdown"
|
||||
" execute "normal! i" . a:title
|
||||
" execute "normal V\<tab>yaml_note\<tab>"
|
||||
" endfunction
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{ pkgs, ... }:
|
||||
{ lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
|
|
@ -6,6 +6,7 @@
|
|||
marksman
|
||||
nil
|
||||
typescript-language-server
|
||||
vim-language-server
|
||||
];
|
||||
|
||||
programs.neovim = {
|
||||
|
|
@ -30,8 +31,9 @@
|
|||
|
||||
{
|
||||
plugin = fugitive;
|
||||
type = "lua";
|
||||
config = ''
|
||||
nnoremap <Leader>g :Git
|
||||
vim.api.nvim_set_keymap("n", "<Leader>g", ":Git<CR>", { noremap = true, silent = true })
|
||||
'';
|
||||
}
|
||||
|
||||
|
|
@ -43,9 +45,9 @@
|
|||
vim.api.nvim_set_keymap('i', '<c-x><c-k>', '<Plug>(fzf-complete-word)', { silent = true })
|
||||
vim.api.nvim_set_keymap('i', '<c-x><c-l>', '<Plug>(fzf-complete-line)', { silent = true })
|
||||
|
||||
vim.api.nvim_set_keymap('n', '<leader><tab>', '<Plug>(fzf-maps-n)', { silent = true })
|
||||
vim.api.nvim_set_keymap('x', '<leader><tab>', '<Plug>(fzf-maps-x)', { silent = true })
|
||||
vim.api.nvim_set_keymap('o', '<leader><tab>', '<Plug>(fzf-maps-o)', { silent = true })
|
||||
vim.api.nvim_set_keymap('n', '<localleader><tab>', '<Plug>(fzf-maps-n)', { silent = true })
|
||||
vim.api.nvim_set_keymap('x', '<localleader><tab>', '<Plug>(fzf-maps-x)', { silent = true })
|
||||
vim.api.nvim_set_keymap('o', '<localleader><tab>', '<Plug>(fzf-maps-o)', { silent = true })
|
||||
|
||||
vim.api.nvim_set_keymap('n', '<leader>b', ':Buffers<return>', { noremap = true, silent = true })
|
||||
vim.api.nvim_set_keymap('n', '<leader>o', ':Files<return>', { noremap = true, silent = true })
|
||||
|
|
@ -107,11 +109,14 @@
|
|||
vim.lsp.enable('r_language_server')
|
||||
vim.lsp.enable('texlab')
|
||||
vim.lsp.enable('ts_ls')
|
||||
vim.lsp.enable('vimls')
|
||||
|
||||
vim.api.nvim_del_keymap('i', '<c-s>')
|
||||
'';
|
||||
}
|
||||
|
||||
(nvim-treesitter.withPlugins (p: [ p.nix p.lua p.r p.typescript ]))
|
||||
|
||||
{
|
||||
plugin = papercolor-theme;
|
||||
config = ''
|
||||
|
|
@ -155,10 +160,11 @@
|
|||
{
|
||||
plugin = vim-pandoc;
|
||||
config = ''
|
||||
let g:pandoc#modules#disabled = ["completion", "command", "menu", "completion"]
|
||||
let g:pandoc#modules#disabled = ["completion", "command", "menu"]
|
||||
'';
|
||||
}
|
||||
|
||||
vim-pandoc-syntax
|
||||
vim-repeat
|
||||
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue