mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-01-19 09:31:38 +01:00
beautifying vim
This commit is contained in:
parent
668e6901fb
commit
4922c9fcb4
8 changed files with 62 additions and 33 deletions
12
flake.lock
12
flake.lock
|
@ -85,11 +85,11 @@
|
||||||
"xdph": "xdph"
|
"xdph": "xdph"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1677259491,
|
"lastModified": 1677346766,
|
||||||
"narHash": "sha256-nTIqi2mNJfV5tuQ+52nR3OGymv6tSC8HEQdR5EDHzT8=",
|
"narHash": "sha256-0+smV3LldkVIRkD4cSfcVsJxxSB9NaRO56ze5Q8+hdo=",
|
||||||
"owner": "hyprwm",
|
"owner": "hyprwm",
|
||||||
"repo": "Hyprland",
|
"repo": "Hyprland",
|
||||||
"rev": "1089e858b49975a4b9f6e49d377726ee4f164f96",
|
"rev": "cf566b59ce980790bc60dac8adf4df9ec8bcf9f9",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -229,11 +229,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1677230078,
|
"lastModified": 1677348479,
|
||||||
"narHash": "sha256-4WYJ+J76TiULFFdv1WCseklbwtunvZ9xzR4pi1MCezM=",
|
"narHash": "sha256-9k2qZo+1KPRRfHzIUs9gfrTxx7ZR+KGPLkpWpDRlp5U=",
|
||||||
"owner": "pta2002",
|
"owner": "pta2002",
|
||||||
"repo": "nixvim",
|
"repo": "nixvim",
|
||||||
"rev": "29764b28af2f27d1e4bd576754e3e1622ca24003",
|
"rev": "705356d4787ecddfc88629ca7ec5e03a8edb4944",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
@ -87,7 +87,7 @@ in
|
||||||
};
|
};
|
||||||
neomutt = {
|
neomutt = {
|
||||||
enable = true;
|
enable = true;
|
||||||
mailboxName = "--rouven@rfive.de--";
|
mailboxName = " rfive.de";
|
||||||
extraMailboxes = [ "Sent" "Trash" "Junk" "Drafts" ];
|
extraMailboxes = [ "Sent" "Trash" "Junk" "Drafts" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -151,7 +151,7 @@ in
|
||||||
msmtp.enable = true;
|
msmtp.enable = true;
|
||||||
neomutt = {
|
neomutt = {
|
||||||
enable = true;
|
enable = true;
|
||||||
mailboxName = "--TU Dresden-------";
|
mailboxName = " TU Dresden";
|
||||||
extraMailboxes = [ "Opal" "Sent" "Trash" "Junk" "Drafts" ];
|
extraMailboxes = [ "Opal" "Sent" "Trash" "Junk" "Drafts" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -212,7 +212,7 @@ in
|
||||||
msmtp.enable = true;
|
msmtp.enable = true;
|
||||||
neomutt = {
|
neomutt = {
|
||||||
enable = true;
|
enable = true;
|
||||||
mailboxName = "--iFSR-------------";
|
mailboxName = " iFSR";
|
||||||
extraMailboxes = [ "Sent" "Trash" "Drafts" ];
|
extraMailboxes = [ "Sent" "Trash" "Drafts" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -269,7 +269,7 @@ in
|
||||||
msmtp.enable = true;
|
msmtp.enable = true;
|
||||||
neomutt = {
|
neomutt = {
|
||||||
enable = true;
|
enable = true;
|
||||||
mailboxName = "--gmail------------";
|
mailboxName = " gmail";
|
||||||
extraMailboxes = [ "Sent" "Trash" "Junk" "Drafts" ];
|
extraMailboxes = [ "Sent" "Trash" "Junk" "Drafts" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -11,7 +11,7 @@ set vfolder_format = " %N %?n?%3n& ? %8m · %f"
|
||||||
set attach_format = "%u%D %T%-75.75d %?T?%& ? %5s · %m/%M"
|
set attach_format = "%u%D %T%-75.75d %?T?%& ? %5s · %m/%M"
|
||||||
|
|
||||||
# no addressed to me, to me, group, cc, sent by me, mailing list
|
# no addressed to me, to me, group, cc, sent by me, mailing list
|
||||||
set to_chars="➜"
|
set to_chars="➜"
|
||||||
# unchanged mailbox, changed, read only, attach mode
|
# unchanged mailbox, changed, read only, attach mode
|
||||||
set status_chars = " "
|
set status_chars = " "
|
||||||
ifdef crypt_chars set crypt_chars = " "
|
ifdef crypt_chars set crypt_chars = " "
|
||||||
|
|
|
@ -17,8 +17,8 @@
|
||||||
grim
|
grim
|
||||||
slurp
|
slurp
|
||||||
swappy
|
swappy
|
||||||
# font-awesome
|
|
||||||
swaylock-effects
|
swaylock-effects
|
||||||
|
wlogout
|
||||||
];
|
];
|
||||||
|
|
||||||
xdg.configFile = {
|
xdg.configFile = {
|
||||||
|
|
|
@ -165,9 +165,10 @@ binde = SHIFT, XF86AudioLowerVolume, exec, pactl set-source-volume @DEFAULT_SOUR
|
||||||
bind = ,XF86Messenger, exec, makoctl dismiss
|
bind = ,XF86Messenger, exec, makoctl dismiss
|
||||||
bind = SHIFT ,XF86Messenger, exec, makoctl restore
|
bind = SHIFT ,XF86Messenger, exec, makoctl restore
|
||||||
bind = ,XF86Go, exec, makoctl invoke
|
bind = ,XF86Go, exec, makoctl invoke
|
||||||
bind = ,Cancel, exec, sh ~/.config/mako/do-not-disturb.sh
|
bind = SHIFT, XF86Go, exec, sh ~/.config/mako/do-not-disturb.sh
|
||||||
bind = ,XF86Display, exec, hyprpaper
|
bind = ,XF86Display, exec, hyprpaper
|
||||||
bind = ,XF86Favorites, exec, swaylock
|
bind = ,XF86Favorites, exec, swaylock
|
||||||
|
bind = ,Cancel, exec, wlogout
|
||||||
|
|
||||||
# lock on lid
|
# lock on lid
|
||||||
bindl = ,switch:Lid Switch, exec, swaylock
|
bindl = ,switch:Lid Switch, exec, swaylock
|
||||||
|
|
|
@ -15,9 +15,9 @@
|
||||||
modules-right = [ "network" "cpu" "temperature" "pulseaudio" "battery" "tray" "clock" ];
|
modules-right = [ "network" "cpu" "temperature" "pulseaudio" "battery" "tray" "clock" ];
|
||||||
network = {
|
network = {
|
||||||
format-wifi = " {essid} ({signalStrength}%)";
|
format-wifi = " {essid} ({signalStrength}%)";
|
||||||
format-ethernet = " {ipaddr}/{cidr}";
|
format-ethernet = " {ipaddr}/{cidr}";
|
||||||
tooltip-format = " {ifname} via {gwaddr}";
|
tooltip-format = " {ifname} via {gwaddr}";
|
||||||
format-linked = " {ifname} (No IP)";
|
format-linked = " {ifname} (No IP)";
|
||||||
format-disconnected = "Disconnected ⚠";
|
format-disconnected = "Disconnected ⚠";
|
||||||
format-alt = "{ifname}: {ipaddr}/{cidr}";
|
format-alt = "{ifname}: {ipaddr}/{cidr}";
|
||||||
};
|
};
|
||||||
|
|
|
@ -76,7 +76,6 @@
|
||||||
lsp = {
|
lsp = {
|
||||||
enable = true;
|
enable = true;
|
||||||
onAttach = ''
|
onAttach = ''
|
||||||
require("lsp-format").on_attach(client)
|
|
||||||
-- Enable completion triggered by <c-x><c-o>
|
-- Enable completion triggered by <c-x><c-o>
|
||||||
vim.api.nvim_buf_set_option(bufnr, 'omnifunc', 'v:lua.vim.lsp.omnifunc')
|
vim.api.nvim_buf_set_option(bufnr, 'omnifunc', 'v:lua.vim.lsp.omnifunc')
|
||||||
|
|
||||||
|
@ -92,6 +91,8 @@
|
||||||
vim.keymap.set('n', '<leader>rn', vim.lsp.buf.rename, bufopts)
|
vim.keymap.set('n', '<leader>rn', vim.lsp.buf.rename, bufopts)
|
||||||
vim.keymap.set('n', '<leader>ca', vim.lsp.buf.code_action, bufopts)
|
vim.keymap.set('n', '<leader>ca', vim.lsp.buf.code_action, bufopts)
|
||||||
vim.keymap.set('n', 'gr', vim.lsp.buf.references, bufopts)
|
vim.keymap.set('n', 'gr', vim.lsp.buf.references, bufopts)
|
||||||
|
vim.keymap.set('n', '<leader>b', function() vim.lsp.buf.format { async = true } end, bufopts)
|
||||||
|
|
||||||
'';
|
'';
|
||||||
servers = {
|
servers = {
|
||||||
pyright = {
|
pyright = {
|
||||||
|
@ -104,6 +105,7 @@
|
||||||
};
|
};
|
||||||
nvim-cmp = {
|
nvim-cmp = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
mappingPresets = [ "insert" ];
|
||||||
sources = [
|
sources = [
|
||||||
{
|
{
|
||||||
name = "nvim_lsp";
|
name = "nvim_lsp";
|
||||||
|
@ -112,17 +114,43 @@
|
||||||
{ name = "buffer"; }
|
{ name = "buffer"; }
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
treesitter = {
|
||||||
|
enable = true;
|
||||||
|
indent = true;
|
||||||
|
#folding = true; # somewhat broken at the moment
|
||||||
|
grammarPackages = with pkgs.tree-sitter-grammars; [
|
||||||
|
tree-sitter-bash
|
||||||
|
tree-sitter-c
|
||||||
|
tree-sitter-cpp
|
||||||
|
tree-sitter-css
|
||||||
|
tree-sitter-go
|
||||||
|
tree-sitter-haskell
|
||||||
|
tree-sitter-html
|
||||||
|
tree-sitter-java
|
||||||
|
tree-sitter-javascript
|
||||||
|
tree-sitter-json
|
||||||
|
tree-sitter-latex
|
||||||
|
tree-sitter-lua
|
||||||
|
tree-sitter-markdown
|
||||||
|
tree-sitter-nix
|
||||||
|
tree-sitter-perl
|
||||||
|
tree-sitter-python
|
||||||
|
tree-sitter-regex
|
||||||
|
tree-sitter-rst
|
||||||
|
tree-sitter-rust
|
||||||
|
tree-sitter-sql
|
||||||
|
tree-sitter-toml
|
||||||
|
tree-sitter-typescript
|
||||||
|
tree-sitter-yaml
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
extraPlugins = with pkgs.vimPlugins;
|
extraPlugins = with pkgs.vimPlugins;
|
||||||
[
|
[
|
||||||
vim-nix
|
vim-nix
|
||||||
dracula-vim
|
dracula-vim
|
||||||
nerdcommenter
|
nerdcommenter
|
||||||
lsp-format-nvim
|
|
||||||
];
|
];
|
||||||
highlight.ColorColumn.ctermbg = "darkgray";
|
highlight.ColorColumn.ctermbg = "darkgray";
|
||||||
extraConfigLuaPre = ''
|
|
||||||
local lsp_format = require("lsp-format")
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,16 +5,16 @@
|
||||||
thunderbird
|
thunderbird
|
||||||
|
|
||||||
# essentials
|
# essentials
|
||||||
wpa_supplicant_gui
|
wpa_supplicant_gui # manage wifi
|
||||||
pcmanfm
|
pcmanfm # rock solid file manager
|
||||||
xdg-utils
|
xdg-utils # used for xdg-open
|
||||||
snapper-gui
|
snapper-gui
|
||||||
|
|
||||||
# graphics
|
# graphics
|
||||||
evince
|
evince # pdf viewer
|
||||||
gimp
|
gimp
|
||||||
mpv
|
mpv # best video player out there
|
||||||
yt-dlp
|
yt-dlp # youtube downloader
|
||||||
ffmpeg
|
ffmpeg
|
||||||
|
|
||||||
# sound
|
# sound
|
||||||
|
@ -45,18 +45,18 @@
|
||||||
bitwarden-cli
|
bitwarden-cli
|
||||||
|
|
||||||
# misc
|
# misc
|
||||||
neofetch
|
neofetch # obligatory
|
||||||
trash-cli
|
|
||||||
#spotify # make probles atm
|
#spotify # make probles atm
|
||||||
virt-manager
|
virt-manager
|
||||||
ventoy-bin
|
ventoy-bin
|
||||||
ripgrep
|
|
||||||
baobab
|
|
||||||
|
|
||||||
# font and icon stuff
|
trash-cli # better rm
|
||||||
|
ripgrep # better grep
|
||||||
exa # ls but with icons
|
exa # ls but with icons
|
||||||
powerline-fonts
|
bat # better less
|
||||||
|
duf # better df
|
||||||
|
|
||||||
|
powerline-fonts
|
||||||
|
|
||||||
# libs
|
# libs
|
||||||
libyubikey
|
libyubikey
|
||||||
|
|
Loading…
Reference in a new issue