1
0
mirror of https://github.com/nmasur/dotfiles synced 2025-05-09 17:45:52 +00:00

Compare commits

...

3 Commits

Author SHA1 Message Date
Noah Masur
b282e76be4 fix: gq with null-ls 2023-06-24 15:15:50 -06:00
Noah Masur
a26f5dc2b5 tweak readme links 2023-06-24 15:15:39 -06:00
Noah Masur
b0fcee6707 don't auto exit bat pager 2023-06-24 15:15:20 -06:00
3 changed files with 13 additions and 3 deletions
README.md
modules/common
neovim/config
shell

@ -26,8 +26,8 @@ configuration may be difficult to translate to a non-Nix system.
| Terminal | [Kitty](https://sw.kovidgoyal.net/kitty/) | [Link](./modules/common/applications/kitty.nix) |
| Shell | [Fish](https://fishshell.com/) | [Link](./modules/common/shell/fish) |
| Shell Prompt | [Starship](https://starship.rs/) | [Link](./modules/common/shell/starhip.nix) |
| Colorscheme | [Gruvbox](https://github.com/morhetz/gruvbox) | [Link](./colorscheme/gruvbox) |
| Wallpaper | [Road](https://gitlab.com/exorcist365/wallpapers/-/blob/master/gruvbox/road.jpg) | [Link](./hosts/tempest/default.nix)
| Colorscheme | [Gruvbox](https://github.com/morhetz/gruvbox) | [Link](./colorscheme/gruvbox/default.nix) |
| Wallpaper | [Road](https://gitlab.com/exorcist365/wallpapers/-/blob/master/gruvbox/road.jpg) | [Link](./hosts/tempest/default.nix) |
| Text Editor | [Neovim](https://neovim.io/) | [Link](./modules/common/neovim/config) |
| Browser | [Firefox](https://www.mozilla.org/en-US/firefox/new/) | [Link](./modules/common/applications/firefox.nix) |
| E-Mail | [Aerc](https://aerc-mail.org/) | [Link](./modules/common/mail/aerc.nix) |

@ -50,6 +50,7 @@
on_attach = function(client, bufnr)
if client.supports_method("textDocument/formatting") then
-- Auto-format on save
vim.api.nvim_clear_autocmds({ group = augroup, buffer = bufnr })
vim.api.nvim_create_autocmd("BufWritePre", {
group = augroup,
@ -58,6 +59,12 @@
vim.lsp.buf.format({ bufnr = bufnr })
end,
})
-- Use internal formatting for bindings like gq.
vim.api.nvim_create_autocmd("LspAttach", {
callback = function(args)
vim.bo[args.buf].formatexpr = nil
end,
})
end
end,
})

@ -46,7 +46,10 @@ in {
programs.bat = {
enable = true; # cat replacement
config = { theme = config.theme.colors.batTheme; };
config = {
theme = config.theme.colors.batTheme;
pager = "less -R"; # Don't auto-exit if one screen
};
};
programs.fish.shellAbbrs = {