woof, markdown

This commit is contained in:
Till 2025-05-15 17:22:04 +02:00
parent f159c2cb9d
commit c033c64135
5 changed files with 34 additions and 32 deletions

View file

@ -1,25 +1,28 @@
{ config, pkgs, ... }:
{
home.packages = with pkgs.nodePackages; [
typescript-language-server
home.packages = with pkgs; [
nodePackages.typescript-language-server
marksman
];
programs.neovim = {
extraConfig = builtins.readFile ./config.vim;
enable = true;
defaultEditor = true;
plugins = with pkgs.vimPlugins;
let
woof = pkgs.vimUtils.buildVimPlugin {
name = "woof.vim";
src = builtins.fetchGit {
url = "ssh://git@ktiu.net/home/git/woof.vim/";
url = "ssh://git@shorbut.ktiu.net/home/git/woof.vim/";
ref = "main";
rev = "ea2ed3afb7c00a6b1672351e22195c0f8dd5d696";
rev = "146eca695d0c3901905f4d46d9defd1f624dc193";
};
};
in [
in
[
{
plugin = woof;
config = ''
@ -56,7 +59,6 @@
\)
'';
}
{
plugin = goyo;
config = ''
@ -65,7 +67,6 @@
nnoremap ]og :Goyo!<return>
'';
}
{
plugin = limelight-vim;
config = ''
@ -76,12 +77,10 @@
nnoremap ]of :Limelight!<return>
'';
}
{
plugin = nvim-colorizer-lua;
config = "lua require 'colorizer'.setup()";
}
{
plugin = papercolor-theme;
config = ''
@ -89,7 +88,6 @@
colorscheme PaperColor
'';
}
typescript-vim
{
plugin = ultisnips;

View file

@ -69,7 +69,7 @@ lua <<EOF
local nvim_lsp = require('lspconfig')
local capabilities = require('cmp_nvim_lsp').default_capabilities()
local servers = { "r_language_server", "ts_ls", "astro", "texlab" }
local servers = { "r_language_server", "ts_ls", "astro", "texlab", "marksman" }
for _, lsp in ipairs(servers) do
nvim_lsp[lsp].setup {
on_attach = on_attach,