Continue on vim setup

This commit is contained in:
2026-03-14 15:11:03 +01:00
parent 2b2ce07edc
commit 7750d32da5
3 changed files with 25 additions and 6 deletions

View File

@@ -126,6 +126,9 @@ fi
#export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
#gpgconf --launch gpg-agent
### ripgrep
export RIPGREP_CONFIG_PATH="$HOME/.ripgreprc"
### Passbook setup
export PASSBOOK_GPG_PATH="/usr/bin/gpg"
export PASSBOOK_ROOT_DIRECTORY="/home/wholteza/.password-store"

View File

@@ -50,12 +50,17 @@ vim.keymap.set('n', '<Esc>', '<cmd>nohlsearch<CR>')
vim.keymap.set('n', '<leader>f', vim.lsp.buf.format, { desc = "Format buffer" })
-- Start the file picker in different modes
vim.keymap.set('n', '<leader>sf', ":Pick files<CR>", { desc = "Search files" })
vim.keymap.set('n', '<leader>sg', ":Pick grep_live<CR>", { desc = "Search files" })
vim.keymap.set('n', '<leader>sf', function()
require('mini.pick').builtin.files()
end, { desc = "Search files" })
vim.keymap.set('n', '<leader>sg', ":Pick grep_live<CR>", { desc = "Search file contents" })
-- Get help with keybinds
vim.keymap.set('n', '<leader>?', ":WhichKey<CR>", { desc = "Show keybinds" })
-- File explorer
vim.keymap.set('n', '\\', ":Oil --float<CR>", { desc = "File explorer" })
-- SECTION: Install packages
vim.pack.add({
'https://github.com/catppuccin/nvim', -- color scheme
@@ -70,8 +75,8 @@ vim.pack.add({
'https://github.com/folke/which-key.nvim', -- Shortcut hints (bar at the bottom when pressing space)
'https://github.com/nvim-lua/plenary.nvim', -- Helper lua functions, dep of todo-comments.
'https://github.com/folke/todo-comments.nvim', -- Helper lua functions, dep of todo-comments.
'https://github.com/nvim-treesitter/nvim-treesitter',
'https://github.com/nvim-treesitter/nvim-treesitter', -- Syntax highlighting
'https://github.com/stevearc/oil.nvim', -- File explorer
})
-- SECTION: Colorscheme
@@ -99,10 +104,17 @@ require('todo-comments').setup({
})
-- Mini
require('mini.pick').setup()
local MiniPicker = require('mini.pick').setup({
source = {
show = require('mini.pick').default_show,
},
})
require('mini.pairs').setup()
require('mini.notify').setup()
require('oil').setup()
require('nvim-treesitter').setup({
auto_install = true
})
@@ -111,7 +123,7 @@ require('nvim-treesitter').setup({
require("mason").setup()
require("mason-lspconfig").setup({
-- Install lsp deps here
ensure_installed = { 'lua_ls' },
ensure_installed = { 'lua_ls', 'ts_ls', 'ansiblels' },
automatic_enable = true
})
require("mason-tool-installer").setup({

View File

@@ -48,6 +48,10 @@
"rev": "eb1f8e80cb28eb7892f347609e0bdc5eb574b945",
"src": "https://github.com/nvim-treesitter/nvim-treesitter"
},
"oil.nvim": {
"rev": "0fcc83805ad11cf714a949c98c605ed717e0b83e",
"src": "https://github.com/stevearc/oil.nvim"
},
"plenary.nvim": {
"rev": "b9fd5226c2f76c951fc8ed5923d85e4de065e509",
"src": "https://github.com/nvim-lua/plenary.nvim"