prep roundcube, from ktiu.net, nvim stuff

This commit is contained in:
Till 2026-02-05 00:25:04 +01:00
parent d4474ef5ce
commit 40539ae163
5 changed files with 56 additions and 14 deletions

View file

@ -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
{