Continue on vim setup
This commit is contained in:
3
.bashrc
3
.bashrc
@@ -126,6 +126,9 @@ fi
|
|||||||
#export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
|
#export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
|
||||||
#gpgconf --launch gpg-agent
|
#gpgconf --launch gpg-agent
|
||||||
|
|
||||||
|
### ripgrep
|
||||||
|
export RIPGREP_CONFIG_PATH="$HOME/.ripgreprc"
|
||||||
|
|
||||||
### Passbook setup
|
### Passbook setup
|
||||||
export PASSBOOK_GPG_PATH="/usr/bin/gpg"
|
export PASSBOOK_GPG_PATH="/usr/bin/gpg"
|
||||||
export PASSBOOK_ROOT_DIRECTORY="/home/wholteza/.password-store"
|
export PASSBOOK_ROOT_DIRECTORY="/home/wholteza/.password-store"
|
||||||
|
|||||||
@@ -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" })
|
vim.keymap.set('n', '<leader>f', vim.lsp.buf.format, { desc = "Format buffer" })
|
||||||
|
|
||||||
-- Start the file picker in different modes
|
-- Start the file picker in different modes
|
||||||
vim.keymap.set('n', '<leader>sf', ":Pick files<CR>", { desc = "Search files" })
|
vim.keymap.set('n', '<leader>sf', function()
|
||||||
vim.keymap.set('n', '<leader>sg', ":Pick grep_live<CR>", { desc = "Search files" })
|
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
|
-- Get help with keybinds
|
||||||
vim.keymap.set('n', '<leader>?', ":WhichKey<CR>", { desc = "Show 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
|
-- SECTION: Install packages
|
||||||
vim.pack.add({
|
vim.pack.add({
|
||||||
'https://github.com/catppuccin/nvim', -- color scheme
|
'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/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/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/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
|
-- SECTION: Colorscheme
|
||||||
@@ -99,10 +104,17 @@ require('todo-comments').setup({
|
|||||||
})
|
})
|
||||||
|
|
||||||
-- Mini
|
-- Mini
|
||||||
require('mini.pick').setup()
|
local MiniPicker = require('mini.pick').setup({
|
||||||
|
source = {
|
||||||
|
show = require('mini.pick').default_show,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
require('mini.pairs').setup()
|
require('mini.pairs').setup()
|
||||||
require('mini.notify').setup()
|
require('mini.notify').setup()
|
||||||
|
|
||||||
|
require('oil').setup()
|
||||||
|
|
||||||
require('nvim-treesitter').setup({
|
require('nvim-treesitter').setup({
|
||||||
auto_install = true
|
auto_install = true
|
||||||
})
|
})
|
||||||
@@ -111,7 +123,7 @@ require('nvim-treesitter').setup({
|
|||||||
require("mason").setup()
|
require("mason").setup()
|
||||||
require("mason-lspconfig").setup({
|
require("mason-lspconfig").setup({
|
||||||
-- Install lsp deps here
|
-- Install lsp deps here
|
||||||
ensure_installed = { 'lua_ls' },
|
ensure_installed = { 'lua_ls', 'ts_ls', 'ansiblels' },
|
||||||
automatic_enable = true
|
automatic_enable = true
|
||||||
})
|
})
|
||||||
require("mason-tool-installer").setup({
|
require("mason-tool-installer").setup({
|
||||||
|
|||||||
@@ -48,6 +48,10 @@
|
|||||||
"rev": "eb1f8e80cb28eb7892f347609e0bdc5eb574b945",
|
"rev": "eb1f8e80cb28eb7892f347609e0bdc5eb574b945",
|
||||||
"src": "https://github.com/nvim-treesitter/nvim-treesitter"
|
"src": "https://github.com/nvim-treesitter/nvim-treesitter"
|
||||||
},
|
},
|
||||||
|
"oil.nvim": {
|
||||||
|
"rev": "0fcc83805ad11cf714a949c98c605ed717e0b83e",
|
||||||
|
"src": "https://github.com/stevearc/oil.nvim"
|
||||||
|
},
|
||||||
"plenary.nvim": {
|
"plenary.nvim": {
|
||||||
"rev": "b9fd5226c2f76c951fc8ed5923d85e4de065e509",
|
"rev": "b9fd5226c2f76c951fc8ed5923d85e4de065e509",
|
||||||
"src": "https://github.com/nvim-lua/plenary.nvim"
|
"src": "https://github.com/nvim-lua/plenary.nvim"
|
||||||
|
|||||||
Reference in New Issue
Block a user