Whichkey rework, dashboard, yazi
This commit is contained in:
parent
d9ac8b2bd1
commit
92bd99d8ea
13 changed files with 197 additions and 39 deletions
|
|
@ -12,25 +12,28 @@ end
|
|||
local packer_bootstrap = ensure_packer()
|
||||
|
||||
return require("packer").startup(function(use)
|
||||
use "goolord/alpha-nvim"
|
||||
|
||||
use "wbthomason/packer.nvim"
|
||||
|
||||
-- -- Dashboard
|
||||
-- use {
|
||||
-- 'glepnir/dashboard-nvim',
|
||||
-- event = 'VimEnter',
|
||||
-- requires = {'nvim-tree/nvim-web-devicons'},
|
||||
-- config = function()
|
||||
-- require('dashboard').setup {
|
||||
-- -- config
|
||||
-- }
|
||||
-- end,
|
||||
-- }
|
||||
use "DreamMaoMao/yazi.nvim"
|
||||
|
||||
use "whonore/Coqtail"
|
||||
|
||||
use {
|
||||
"folke/which-key.nvim",
|
||||
config = function()
|
||||
vim.o.timeout = true
|
||||
vim.o.timeoutlen = 300
|
||||
end
|
||||
}
|
||||
|
||||
-- File manager in nvim
|
||||
use {
|
||||
"ptzz/lf.vim",
|
||||
requires = { {"voldikss/vim-floaterm"} },
|
||||
}
|
||||
vim.cmd("let g:lf_map_keys = 0") -- Need to put here or else doesn't work
|
||||
|
||||
-- Zen mode
|
||||
use "folke/zen-mode.nvim"
|
||||
|
|
@ -97,6 +100,12 @@ return require("packer").startup(function(use)
|
|||
}
|
||||
}
|
||||
|
||||
-- Better diagnostics
|
||||
use {
|
||||
"folke/trouble.nvim",
|
||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||
}
|
||||
|
||||
-- Linting
|
||||
use "jose-elias-alvarez/null-ls.nvim"
|
||||
|
||||
|
|
@ -116,10 +125,10 @@ return require("packer").startup(function(use)
|
|||
})
|
||||
|
||||
-- Jupyter notebook integration
|
||||
use {
|
||||
"glacambre/firenvim",
|
||||
run = function() vim.fn["firenvim#install"](0) end
|
||||
}
|
||||
-- use {
|
||||
-- "glacambre/firenvim",
|
||||
-- run = function() vim.fn["firenvim#install"](0) end
|
||||
-- }
|
||||
|
||||
if packer_bootstrap then
|
||||
require('packer').sync()
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ vim.keymap.set("n", "N", "Nzzzv")
|
|||
-- easier escape back to normal mode
|
||||
vim.keymap.set("i", "<C-c>", "<Esc>")
|
||||
|
||||
-- lol
|
||||
vim.keymap.set("n", "Q", "<nop>")
|
||||
|
||||
-- universal find and replace
|
||||
|
|
@ -35,7 +34,27 @@ vim.keymap.set("n", "<leader>y", "\"+y")
|
|||
vim.keymap.set("n", "<leader>d", "\"_d")
|
||||
vim.keymap.set("v", "<leader>d", "\"_d")
|
||||
|
||||
vim.keymap.set("n", "<leader>tc",
|
||||
function ()
|
||||
local col = "78"
|
||||
print(vim.o.cc)
|
||||
if vim.o.cc == col then
|
||||
vim.o.cc = ""
|
||||
else
|
||||
vim.o.cc = col
|
||||
end
|
||||
end,
|
||||
{desc = "Toggle color column"})
|
||||
|
||||
-- case insensitive search
|
||||
vim.keymap.set("n", "<leader>/", "/\\c")
|
||||
vim.keymap.set("n", "<leader>?", "?\\c")
|
||||
|
||||
vim.keymap.set("n", "<leader>hF",
|
||||
function()
|
||||
local result = vim.treesitter.get_captures_at_cursor(0)
|
||||
print(vim.inspect(result))
|
||||
end,
|
||||
{ noremap = true, silent = false, desc = "Describe face" }
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
-- vim.opt.guicursor = ""
|
||||
|
||||
vim.opt.nu = true
|
||||
vim.opt.relativenumber = true
|
||||
|
||||
|
|
@ -9,9 +7,27 @@ vim.opt.shiftwidth = 4
|
|||
vim.opt.expandtab = true
|
||||
|
||||
vim.opt.smartindent = true
|
||||
vim.opt.linebreak = true
|
||||
|
||||
local autocmd = vim.api.nvim_create_autocmd
|
||||
autocmd("bufenter", {
|
||||
pattern = "*",
|
||||
callback = function()
|
||||
if vim.bo.ft ~= "terminal" then
|
||||
vim.opt.laststatus = 2
|
||||
else
|
||||
vim.opt.laststatus = 0
|
||||
end
|
||||
end,
|
||||
})
|
||||
|
||||
-- Only search with case if capital letter is typed
|
||||
vim.opt.ignorecase = true
|
||||
vim.opt.smartcase = true
|
||||
vim.opt.wrap = true
|
||||
|
||||
vim.opt.splitbelow = true
|
||||
|
||||
vim.opt.scrolloff = 8
|
||||
vim.opt.signcolumn = "auto"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue