mini icons and stuff
This commit is contained in:
@ -8,9 +8,9 @@ return {
|
||||
dependencies = {
|
||||
"nvim-telescope/telescope-fzf-native.nvim",
|
||||
},
|
||||
-- config = function()
|
||||
-- vim.ui.select = require("dropbar.utils.menu").select
|
||||
-- end,
|
||||
config = function()
|
||||
vim.ui.select = require("dropbar.utils.menu").select
|
||||
end,
|
||||
},
|
||||
{
|
||||
"RRethy/vim-illuminate",
|
||||
|
@ -7,8 +7,6 @@ return {
|
||||
vim.opt.termguicolors = true
|
||||
require("bufferline").setup({
|
||||
options = {
|
||||
-- separator_style = "slope",
|
||||
-- separator_style = "slant",
|
||||
hover = {
|
||||
enabled = true,
|
||||
delay = 200,
|
||||
@ -37,13 +35,6 @@ return {
|
||||
truncate_name = false,
|
||||
show_close_icon = false,
|
||||
show_buffer_close_icons = false,
|
||||
-- custom_areas = {
|
||||
-- right = function()
|
||||
-- local result = {}
|
||||
-- table.insert(result, { text = " " .. vim.api.nvim_buf_get_name(0), fg = "#edf" })
|
||||
-- return result
|
||||
-- end,
|
||||
-- },
|
||||
},
|
||||
})
|
||||
end,
|
||||
|
@ -60,7 +60,7 @@ return {
|
||||
:find()
|
||||
end
|
||||
|
||||
vim.keymap.set("n", "<leader>th", function()
|
||||
vim.keymap.set("n", "<leader>h", function()
|
||||
toggle_telescope(harpoon:list())
|
||||
end, { desc = "Open harpoon window" })
|
||||
end,
|
||||
|
17
vim/.vim/lua/plugins/mini.lua
Normal file
17
vim/.vim/lua/plugins/mini.lua
Normal file
@ -0,0 +1,17 @@
|
||||
return {
|
||||
-- { "echasnovski/mini.clue", version = "*" },
|
||||
-- { "echasnovski/mini.comment", version = "*" },
|
||||
{
|
||||
"echasnovski/mini.icons",
|
||||
opts = {},
|
||||
lazy = true,
|
||||
specs = { { "nvim-tree/nvim-web-devicons", enabled = false, optional = true } },
|
||||
init = function()
|
||||
package.preload["nvim-web-devicons"] = function() -- needed since it will be false when loading and mini will fail
|
||||
package.loaded["nvim-web-devicons"] = {}
|
||||
require("mini.icons").mock_nvim_web_devicons()
|
||||
return package.loaded["nvim-web-devicons"]
|
||||
end
|
||||
end,
|
||||
},
|
||||
}
|
@ -66,8 +66,8 @@ return {
|
||||
"MunifTanjim/nui.nvim",
|
||||
},
|
||||
keys = {
|
||||
{ "<C-n>", ":Neotree float buffers<CR>" },
|
||||
{ "<C-n>.", ":Neotree float reveal toggle dir=%:p:h<cr>" },
|
||||
{ "<C-n>", ":Neotree float reveal toggle dir=%:p:h<cr>" },
|
||||
{ "<C-n>b", ":Neotree float buffers<CR>" },
|
||||
-- { "<C-n>.", ":Neotree float reveal_force_cwd<CR>", desc = "Open NeoTree CWD float" },
|
||||
},
|
||||
},
|
||||
|
@ -49,23 +49,20 @@ function fig_all_modified()
|
||||
end
|
||||
|
||||
local keys = {
|
||||
{ "<C-P>", ":lua find_files(scopes.get_current_dirs())<CR>", desc = "Find Files in CWD" },
|
||||
{ "<leader>e", ":lua search_cwd()<CR>", desc = "Find Files in Buffer Directory" },
|
||||
{ "<leader>.", ':lua live_grep({vim.fn.expand("%%")})<CR>', desc = "Find Files in Buffer Directory" },
|
||||
{ "<leader>ts.", ":lua live_grep({vim.fn.getcwd()})<CR>", desc = "Search in CWD" },
|
||||
{ "<leader>ts", ':lua live_grep({vim.fn.expand("%%")})<CR>', desc = "Find Files in Buffer Directory" },
|
||||
{ "<leader>tc", ":Telescope textcase<CR>", desc = "Text case" },
|
||||
{ "<leader>tC", ":CritiqueCommentsTelescope<CR>", desc = "Text case" },
|
||||
{ "<leader>t.", ":lua find_dotfiles()<CR>", desc = "Find Dotfiles" },
|
||||
{ "<leader>tdc", ":Telescope dap commands" },
|
||||
{ "<leader>tdc", ":Telescope dap configurations" },
|
||||
{ "<leader>td", ":lua find_dotfiles()<CR>", desc = "Find Dotfiles" },
|
||||
{ "<leader>tC", ":CritiqueCommentsTelescope<CR>", desc = "Critique comments" },
|
||||
{ "<leader>tg", ":Telescope git_files<CR>", desc = "Git Files" },
|
||||
{ "<leader>th", ":lua require('telescope.builtin').help_tags{}<CR>", desc = "[T]elescope [H]elp" },
|
||||
{ "<leader>tk", ":Telescope keymaps<CR>", desc = "Keymaps" },
|
||||
{ "<leader>tk", ":Telescope Keymaps<CR>", desc = "Search Keymaps" },
|
||||
{ "<leader>tn", ":Telescope notify<CR>", desc = "Notifications" },
|
||||
{ "<leader>to", ":Telescope oldfiles<CR>", desc = "Recent(oldfiles) Files" },
|
||||
{ "<leader>tn", ":Telescope notify<CR>", desc = "Notifications" },
|
||||
{ "<leader>tr", ":Telescope resume<CR>", desc = "Telescope Resume" },
|
||||
{ "<leader>ts", ":lua live_grep(scopes.get_current_dirs())<CR>", desc = "Search in CWD" },
|
||||
--
|
||||
-- { "<leader>tdc", ":Telescope dap commands" },
|
||||
-- { "<leader>tdc", ":Telescope dap configurations" },
|
||||
}
|
||||
|
||||
if use_google() then
|
||||
|
@ -49,14 +49,18 @@ set splitright " Puts new vsplit windows to the right of the current
|
||||
set splitbelow " Puts new split windows to the bottom of the current
|
||||
|
||||
set scrolljump=5 " Line to scroll when cursor leaves screen
|
||||
set scrolloff=3 " Minumum lines to keep above and below cursor
|
||||
set scrolloff=3 " Minimum lines to keep above and below cursor
|
||||
|
||||
set shortmess=A " disable swap
|
||||
set shortmess=A " disable swapg
|
||||
set shortmess+=O
|
||||
set modifiable
|
||||
set noscrollbind
|
||||
set expandtab
|
||||
|
||||
" map <LeftMouse> ""
|
||||
map <LeftDrag> ""
|
||||
map <LeftRelease> ""
|
||||
|
||||
set updatetime=100
|
||||
|
||||
lua require('plugin_init')
|
||||
|
Reference in New Issue
Block a user