2022-09-18 15:13:50 -07:00
|
|
|
{ pkgs, ... }:
|
2024-08-26 23:15:22 -07:00
|
|
|
# TODO Need to find a solution to have my own packages?
|
|
|
|
# Or at least update to recent versions of the packages I do use in nixpkgs
|
2022-09-18 15:13:50 -07:00
|
|
|
{
|
|
|
|
home.sessionVariables.EDITOR = "nvim";
|
|
|
|
home.shellAliases = {
|
2024-08-26 23:09:08 -07:00
|
|
|
vim = "nvim";
|
2022-09-18 15:13:50 -07:00
|
|
|
k = "cd ~/kitaab/vimwiki; vim -c :VimwikiIndex; cd $OLDPWD";
|
2023-06-03 04:47:11 -07:00
|
|
|
# kitaab zettel
|
2022-09-18 15:13:50 -07:00
|
|
|
kz = "cd ~/kitaab/vimwiki; vim -c :VimwikiIndex -c :ZettelNew; cd $OLDPWD";
|
2023-06-03 04:47:11 -07:00
|
|
|
# kitaab get by tagged
|
2024-03-15 23:25:49 -07:00
|
|
|
kt = "cd /home/anish/kitaab/vimwiki; eza *_index.wiki | fzf --preview 'bat --style=numbers --color=always --terminal-width -1 ./{}';cd $OLDPWD";
|
2022-09-18 15:13:50 -07:00
|
|
|
};
|
2024-08-25 23:44:07 -07:00
|
|
|
|
|
|
|
home.file = {
|
|
|
|
# Add %update to the highlight clause for vimwiki files
|
|
|
|
# ".config/nvim/after/syntax/vimwiki.vim".text = ''
|
|
|
|
# " match with %update
|
|
|
|
# syntax match VimwikiPlaceholder /^\s*%update\ze\%(\s.*\)\?$/ nextgroup=VimwikiPlaceholderParam skipwhite
|
|
|
|
# " match with %link
|
|
|
|
# syntax match VimwikiPlaceholder /^\s*%link\ze\%(\s.*\)\?$/ nextgroup=VimwikiPlaceholderParam skipwhite
|
|
|
|
# '';
|
2024-08-26 23:17:11 -07:00
|
|
|
".config/nvim".source = ./config;
|
2024-08-25 23:44:07 -07:00
|
|
|
};
|
2022-09-18 15:13:50 -07:00
|
|
|
|
|
|
|
#environment.systemPackages = with customPlugins; [ tidal ];
|
|
|
|
programs.neovim = {
|
|
|
|
enable = true;
|
|
|
|
|
2024-08-25 00:46:03 -07:00
|
|
|
# extraConfig = ''
|
|
|
|
# filetype plugin on
|
|
|
|
# set shortmess+=c
|
|
|
|
|
|
|
|
# " Pasting
|
|
|
|
# :map <leader>sy :!xclip -i<CR><CR>
|
|
|
|
# :vmap <leader>sy "*y
|
|
|
|
# :map <leader>sp :r!xclip -o<CR>
|
|
|
|
|
|
|
|
# " lua config
|
|
|
|
# lua <<EOF
|
|
|
|
# local luasnip = require("luasnip")
|
|
|
|
# local lspkind = require("lspkind")
|
|
|
|
# local t = function(str)
|
|
|
|
# return vim.api.nvim_replace_termcodes(str, true, true, true)
|
|
|
|
# end
|
|
|
|
# local check_back_space = function()
|
|
|
|
# local col = vim.fn.col(".") - 1
|
|
|
|
# return col == 0 or vim.fn.getline("."):sub(col, col):match("%s") ~= nil
|
|
|
|
# end
|
|
|
|
|
|
|
|
|
|
|
|
# -- Setup lspconfig
|
|
|
|
# -- zen mode
|
|
|
|
# require('zen-mode').setup{
|
|
|
|
# window = {
|
|
|
|
# backdrop = 1.0, -- shade the backdrop of the Zen window. Set to 1 to keep the same as Normal
|
|
|
|
# -- height and width can be:
|
|
|
|
# -- * an absolute number of cells when > 1
|
|
|
|
# -- * a percentage of the width / height of the editor when <= 1
|
|
|
|
# -- * a function that returns the width or the height
|
|
|
|
# width = 120, -- width of the Zen window
|
|
|
|
# height = 1, -- height of the Zen window
|
|
|
|
# -- by default, no options are changed for the Zen window
|
|
|
|
# -- uncomment any of the options below, or add other vim.wo options you want to apply
|
|
|
|
# options = {
|
|
|
|
# signcolumn = "no", -- disable signcolumn
|
|
|
|
# number = false, -- disable number column
|
|
|
|
# relativenumber = false, -- disable relative numbers
|
|
|
|
# cursorline = false, -- disable cursorline
|
|
|
|
# cursorcolumn = false, -- disable cursor column
|
|
|
|
# foldcolumn = "0", -- disable fold column
|
|
|
|
# list = false, -- disable whitespace characters
|
|
|
|
# },
|
|
|
|
# },
|
|
|
|
# plugins = {
|
|
|
|
# -- disable some global vim options (vim.o...)
|
|
|
|
# -- comment the lines to not apply the options
|
|
|
|
# options = {
|
|
|
|
# enabled = true,
|
|
|
|
# ruler = false, -- disables the ruler text in the cmd line area
|
|
|
|
# showcmd = false, -- disables the command in the last line of the screen
|
|
|
|
# },
|
|
|
|
# twilight = { enabled = true }, -- enable to start Twilight when zen mode opens
|
|
|
|
# gitsigns = { enabled = false }, -- disables git signs
|
|
|
|
# tmux = { enabled = false }, -- disables the tmux statusline
|
|
|
|
# -- this will change the font size on kitty when in zen mode
|
|
|
|
# -- to make this work, you need to set the following kitty options:
|
|
|
|
# -- - allow_remote_control socket-only
|
|
|
|
# -- - listen_on unix:/tmp/kitty
|
|
|
|
# kitty = {
|
|
|
|
# enabled = true,
|
|
|
|
# font = "+2", -- font size increment
|
|
|
|
# },
|
|
|
|
# },
|
|
|
|
# }
|
|
|
|
# require('twilight').setup{}
|
|
|
|
# EOF
|
|
|
|
# '';
|
2024-08-26 23:15:22 -07:00
|
|
|
|
2024-08-24 03:51:29 -07:00
|
|
|
extraPackages = with pkgs; [
|
2022-09-18 15:13:50 -07:00
|
|
|
# used to compile tree-sitter grammar
|
2024-08-24 03:51:29 -07:00
|
|
|
# python-with-my-packages
|
2024-08-26 23:09:08 -07:00
|
|
|
# nodejs
|
|
|
|
# clojure-lsp
|
|
|
|
# clojure
|
|
|
|
# clj-kondo
|
2024-08-24 03:51:29 -07:00
|
|
|
terraform-lsp
|
2024-08-26 23:09:08 -07:00
|
|
|
nil
|
2024-07-14 20:21:20 -07:00
|
|
|
gopls
|
2022-09-18 15:13:50 -07:00
|
|
|
gcc
|
|
|
|
shellcheck
|
|
|
|
proselint
|
2024-08-26 23:15:22 -07:00
|
|
|
nixfmt
|
2024-08-26 23:09:08 -07:00
|
|
|
# statix
|
|
|
|
# nodePackages.typescript
|
|
|
|
# nodePackages.typescript-language-server
|
|
|
|
# luajitPackages.lua-lsp
|
2022-12-30 04:36:20 -08:00
|
|
|
fennel-ls
|
2024-08-26 23:15:22 -07:00
|
|
|
unstable.starpls-bin
|
2022-09-18 15:13:50 -07:00
|
|
|
];
|
2022-09-27 05:13:16 -07:00
|
|
|
|
2024-08-24 03:51:29 -07:00
|
|
|
plugins = with pkgs.vimPlugins; [
|
2024-08-25 00:46:03 -07:00
|
|
|
#hotpot
|
|
|
|
hotpot-nvim
|
2022-09-18 15:13:50 -07:00
|
|
|
# ui
|
2022-12-06 20:38:29 -08:00
|
|
|
lualine-nvim
|
2024-08-25 00:46:03 -07:00
|
|
|
neo-tree-nvim
|
2022-09-18 15:13:50 -07:00
|
|
|
fzf-vim
|
|
|
|
vim-devicons
|
|
|
|
nvim-web-devicons
|
|
|
|
telescope-nvim
|
|
|
|
plenary-nvim
|
2024-08-25 00:46:03 -07:00
|
|
|
FTerm-nvim
|
2022-09-18 15:13:50 -07:00
|
|
|
barbar-nvim
|
2024-08-24 03:51:29 -07:00
|
|
|
neovim-ayu
|
|
|
|
rainbow_parentheses-vim
|
2022-09-18 15:13:50 -07:00
|
|
|
auto-session
|
2022-12-06 20:38:29 -08:00
|
|
|
which-key-nvim
|
2024-08-26 23:09:08 -07:00
|
|
|
aerial-nvim
|
|
|
|
todo-comments-nvim
|
|
|
|
indent-blankline-nvim
|
|
|
|
|
|
|
|
# Tree sitter
|
2024-08-26 23:15:22 -07:00
|
|
|
(nvim-treesitter.withPlugins (p: [ p.nix p.clojure p.fennel p.lua p.html p.css p.regex p.supercollider p.beancount p.markdown_inline p.markdown p.glsl p.yaml p.toml p.dockerfile p.json p.go p.starlark ]))
|
2024-08-26 23:09:08 -07:00
|
|
|
nvim-treesitter-context
|
|
|
|
nvim-treesitter-textobjects
|
|
|
|
|
|
|
|
# TODO
|
|
|
|
nvim-navic
|
|
|
|
undotree
|
|
|
|
marks-nvim
|
2022-09-18 15:13:50 -07:00
|
|
|
|
|
|
|
# language
|
|
|
|
vim-nix
|
|
|
|
emmet-vim
|
|
|
|
csv-vim
|
|
|
|
direnv-vim
|
2024-08-26 23:09:08 -07:00
|
|
|
# conjure
|
2022-09-18 15:13:50 -07:00
|
|
|
|
|
|
|
# kitaab stuff
|
|
|
|
vimwiki
|
|
|
|
vim-zettel
|
2022-12-21 03:43:00 -08:00
|
|
|
hologram-nvim
|
2022-09-18 15:13:50 -07:00
|
|
|
|
|
|
|
# lsp stuff
|
|
|
|
nvim-lspconfig
|
|
|
|
nvim-cmp
|
|
|
|
cmp-nvim-lsp
|
|
|
|
cmp-treesitter
|
2024-08-26 23:09:08 -07:00
|
|
|
# cmp-conjure
|
2022-09-18 15:13:50 -07:00
|
|
|
cmp-buffer
|
|
|
|
cmp-path
|
|
|
|
cmp-spell
|
|
|
|
lspkind-nvim
|
2024-08-26 23:09:08 -07:00
|
|
|
conform-nvim
|
|
|
|
none-ls-nvim
|
|
|
|
mini-nvim
|
|
|
|
lspsaga-nvim
|
|
|
|
# nvim-lspfuzzy
|
2022-09-18 15:13:50 -07:00
|
|
|
|
|
|
|
# git stuff
|
|
|
|
vim-fugitive
|
2022-12-15 02:29:42 -08:00
|
|
|
gitsigns-nvim
|
2022-09-18 15:13:50 -07:00
|
|
|
fzf-checkout-vim
|
|
|
|
|
|
|
|
# Clojure stuff
|
|
|
|
# conjure
|
|
|
|
vim-sexp
|
|
|
|
vim-sexp-mappings-for-regular-people
|
|
|
|
fennel-vim
|
|
|
|
|
|
|
|
vim-tidal
|
|
|
|
# experimental
|
|
|
|
nvim-luapad
|
|
|
|
scnvim
|
2024-08-26 23:09:08 -07:00
|
|
|
flash-nvim
|
2022-09-26 06:27:31 -07:00
|
|
|
vim-beancount
|
2022-09-27 05:13:16 -07:00
|
|
|
# vimtex
|
2022-12-06 20:38:29 -08:00
|
|
|
# custom
|
2024-08-25 00:46:03 -07:00
|
|
|
# nvim-parinfer
|
2022-09-18 15:13:50 -07:00
|
|
|
# vim-processing
|
|
|
|
];
|
2024-08-24 03:51:29 -07:00
|
|
|
# withPython3 = true;
|
|
|
|
# extraPython3Packages = pkgs: with pkgs; [ tasklib six ];
|
|
|
|
# vimAlias = true;
|
2022-09-18 15:13:50 -07:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|