Compare commits

...

5 commits

Author SHA1 Message Date
Bruno BELANYI 6b00d6a499 nixos: hardware: sound: remove ALSA
All checks were successful
ci/woodpecker/push/check Pipeline was successful
Not needed for Pulseaudio.
2024-07-11 13:16:52 +00:00
Bruno BELANYI e8652cbc16 home: vim: enable swap and undo files
Trying it on for size, since NeoVim does use XDG directories for those.
2024-07-10 22:47:14 +01:00
Bruno BELANYI ace6212f49 home: vim: remove redundant 'nobackup'
It's already the default.
2024-07-10 22:45:48 +01:00
Bruno BELANYI 241071df30 home: vim: oil: add detail view toggle mapping 2024-07-10 22:18:43 +01:00
Bruno BELANYI c2723363ec home: vim: migrate to 'oil.nvim' 2024-07-10 22:18:43 +01:00
6 changed files with 39 additions and 14 deletions

View file

@ -1,6 +0,0 @@
" Create the `b:undo_ftplugin` variable if it doesn't exist
call ftplugined#check_undo_ft()
" Don't show Netrw in buffer list
setlocal bufhidden=delete
let b:undo_ftplugin='|setlocal bufhidden<'

View file

@ -0,0 +1,8 @@
local wk = require("which-key")
local oil = require("oil")
local keys = {
["-"] = { oil.open, "Open parent directory" },
}
wk.register(keys)

View file

@ -46,7 +46,6 @@ in
vim-repeat # Enanche '.' for plugins vim-repeat # Enanche '.' for plugins
vim-rsi # Readline mappings vim-rsi # Readline mappings
vim-unimpaired # Some ex command mappings vim-unimpaired # Some ex command mappings
vim-vinegar # Better netrw
# Languages # Languages
rust-vim rust-vim
@ -85,6 +84,7 @@ in
dressing-nvim # Integrate native UI hooks with Telescope etc... dressing-nvim # Integrate native UI hooks with Telescope etc...
gitsigns-nvim # Fast git UI integration gitsigns-nvim # Fast git UI integration
nvim-surround # Deal with pairs, now in Lua nvim-surround # Deal with pairs, now in Lua
oil-nvim # Better alternative to NetrW
telescope-fzf-native-nvim # Use 'fzf' fuzzy matching algorithm telescope-fzf-native-nvim # Use 'fzf' fuzzy matching algorithm
telescope-lsp-handlers-nvim # Use 'telescope' for various LSP actions telescope-lsp-handlers-nvim # Use 'telescope' for various LSP actions
telescope-nvim # Fuzzy finder interface telescope-nvim # Fuzzy finder interface

View file

@ -38,10 +38,10 @@ set tabstop=8
" File parameters {{{ " File parameters {{{
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Disable backups, we have source control for that " Enable swap files
set nobackup set swapfile
" Disable swapfiles too " And undo files
set noswapfile set undofile
" }}} " }}}
" UI and UX parameters {{{ " UI and UX parameters {{{

View file

@ -0,0 +1,26 @@
local oil = require("oil")
local detail = false
oil.setup({
view_options = {
-- Show files and directories that start with "." by default
show_hidden = true,
-- But never '..'
is_always_hidden = function(name, bufnr)
return name == ".."
end,
},
keymaps = {
["gd"] = {
desc = "Toggle file detail view",
callback = function()
detail = not detail
if detail then
oil.set_columns({ "icon", "permissions", "size", "mtime" })
else
oil.set_columns({ "icon" })
end
end,
},
},
})

View file

@ -54,9 +54,6 @@ in
# Pulseaudio setup # Pulseaudio setup
(lib.mkIf cfg.pulse.enable { (lib.mkIf cfg.pulse.enable {
# ALSA
sound.enable = true;
hardware.pulseaudio.enable = true; hardware.pulseaudio.enable = true;
}) })
]); ]);