Introduction
Introduction Statistics Contact Development Disclaimer Help
updating nvim config. - dotfiles - These are my dotfiles. There are many like i…
Log
Files
Refs
README
---
commit 0e63ec7fbeafe16c95dbfd032bdb66d139c46f7e
parent 8c0be770ed72f2459fb2a701d9909178f111c92c
Author: Jay Scott <[email protected]>
Date: Tue, 23 Jan 2024 21:07:13 +0000
updating nvim config.
Diffstat:
M nvim/init.lua | 22 +++++++++++++++++++---
1 file changed, 19 insertions(+), 3 deletions(-)
---
diff --git a/nvim/init.lua b/nvim/init.lua
@@ -17,6 +17,7 @@ vim.opt.rtp:prepend(lazypath)
require("lazy").setup({
+ -- colour theme
{
"ellisonleao/gruvbox.nvim",
priority = 1000,
@@ -28,6 +29,7 @@ require("lazy").setup({
end,
},
+ -- status bar
{
"nvim-lualine/lualine.nvim",
dependencies = { 'nvim-tree/nvim-web-devicons' },
@@ -50,6 +52,7 @@ require("lazy").setup({
end,
},
+ -- remove spaces at the end of lines
{
"lewis6991/spaceless.nvim",
config = function()
@@ -57,11 +60,21 @@ require("lazy").setup({
end
},
+ -- file fuzzy finding
{
"nvim-telescope/telescope.nvim",
dependencies = {
"nvim-lua/plenary.nvim"
}
+ },
+
+ -- file browser
+ {
+ "nvim-telescope/telescope-file-browser.nvim",
+ dependencies = {
+ "nvim-telescope/telescope.nvim",
+ "nvim-lua/plenary.nvim"
+ }
}
})
@@ -93,14 +106,17 @@ vim.keymap.set("n", " ", "<Nop>", { silent = true, remap =…
vim.g.mapleader = " "
-- open file_browser with the path of the current buffer
-vim.keymap.set('n', '<leader>ff', ':Telescope find_files<CR>', { noremap = tru…
+vim.keymap.set('n', '<leader>ff', ':Telescope file_browser path=%:p:h select_b…
+
+-- open fuzzy find file browser
+vim.keymap.set('n', '<leader>fg', ':Telescope find_files<CR>', { noremap = tru…
-- open buffers list
vim.keymap.set('n', '<leader>fb', ':Telescope buffers<CR>', { noremap = true })
-- format paragraphs
-vim.keymap.set('n', '<leader>t', 'gqap', { noremap = true, silent = true })
+vim.keymap.set('n', '<leader>pp', 'gqap', { noremap = true, silent = true })
-- enable spellchecking
-vim.keymap.set('n', '<leader>s', ':setlocal spell! spelllang=en_gb<CR>', { nor…
+vim.keymap.set('n', '<leader>ps', ':setlocal spell! spelllang=en_gb<CR>', { no…
You are viewing proxied material from jay.scot. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.