remove most nerd font icons because I got annoyed by text rendering; improvements

This commit is contained in:
gnat 2024-09-08 15:31:24 -07:00
parent ecfa4a1774
commit a1a1b05f99
11 changed files with 63 additions and 89 deletions

View File

@ -1,5 +1,5 @@
local opt = vim.opt
opt.expandtab = true
opt.smarttab = true
opt.shiftwidth = 4
@ -26,8 +26,8 @@ opt.background = 'light'
opt.updatetime = 50
opt.clipboard = "unnamedplus"
border_style = 'rounded'
vim.cmd('set showtabline=2')
vim.cmd('colorscheme gruvbox')
vim.cmd('hi SpellBad gui=undercurl guifg=#cc241c')

View File

@ -1 +0,0 @@
return {} -- return {'jiangmiao/auto-pairs'}

View File

@ -1,11 +0,0 @@
return {
"utilyre/barbecue.nvim",
name = "barbecue",
version = "*",
event = { 'LspAttach' },
dependencies = {
"SmiteshP/nvim-navic",
"nvim-tree/nvim-web-devicons", -- optional dependency
},
opts = {}
}

View File

@ -1,7 +0,0 @@
return {
-- "lukas-reineke/indent-blankline.nvim",
-- main = "ibl",
-- config = function()
-- require("ibl").setup()
-- end
}

View File

@ -1 +0,0 @@
return { 'echasnovski/mini.files', version = false }

View File

@ -0,0 +1,7 @@
return{
'echasnovski/mini.indentscope',
version = false,
config = function()
require('mini.indentscope').setup()
end
}

View File

@ -1 +0,0 @@
return { 'echasnovski/mini.notify', version = false }

View File

@ -1 +1,7 @@
return { 'echasnovski/mini.pairs', version = false }
return {
'echasnovski/mini.pairs',
version = false,
config = function()
require('mini.pairs').setup()
end
}

View File

@ -4,11 +4,40 @@ return {
branch = "v3.x",
dependencies = {
"nvim-lua/plenary.nvim",
"nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
"MunifTanjim/nui.nvim",
-- "3rd/image.nvim", -- Optional image support in preview window: See `# Preview Mode` for more information
},
config = function()
require('neo-tree').setup({
renderers = {
directory = {
{ "indent" },
{ "current_filter" },
{
"container",
content = {
{ "name", zindex = 10 },
{ "clipboard", zindex = 10 },
{ "diagnostics", errors_only = true, zindex = 20, align = "right", hide_when_expanded = true },
{ "git_status", zindex = 20, align = "right", hide_when_expanded = true },
},
},
},
file = {
{ "indent" },
{
"container",
content = {
{ "name", zindex = 10 },
{ "clipboard", zindex = 10 },
{ "bufnr", zindex = 10 },
{ "modified", zindex = 20, align = "right" },
{ "diagnostics", zindex = 20, align = "right" },
{ "git_status", zindex = 20, align = "right" },
},
},
},
}
})
vim.api.nvim_set_keymap('n', '<leader><tab>', ':UndotreeHide<CR>:Neotree toggle<CR>', {})
end
}

View File

@ -1,51 +0,0 @@
return {
'SmiteshP/nvim-navic',
event = { 'LspAttach' },
config = function()
local navic = require('nvim-navic')
navic.setup {
icons = {
File = '',
Module = '',
Namespace = '',
Package = '',
Class = '',
Method = '',
Property = '',
Field = '',
Constructor = '',
Enum = '',
Interface = '',
Function = '',
Variable = '',
Constant = '',
String = '',
Number = '',
Boolean = '',
Array = '',
Object = '',
Key = '',
Null = '',
EnumMember = '',
Struct = '',
Event = '',
Operator = '',
TypeParameter = ''
},
lsp = {
auto_attach = true,
preference = nil,
},
highlight = true,
separator = " > ",
depth_limit = 0,
depth_limit_indicator = "..",
safe_output = true,
lazy_update_context = false,
click = true,
format_text = function(text)
return text
end,
}
end
}

View File

@ -2,26 +2,26 @@ return {
lazy = true,
'nvim-telescope/telescope.nvim',
tag = '0.1.4',
dependencies = { 'nvim-lua/plenary.nvim' },
dependencies = { 'nvim-lua/plenary.nvim', 'nvim-telescope/telescope-media-files.nvim' },
config = function()
local actions = require("telescope.actions")
local keymap = vim.api.nvim_set_keymap
local canned = require("telescope._extensions.media.lib.canned")
require('telescope').setup({
extensions = {
media_files = {
filetypes = {"png", "webp", "jpg", "jpeg"},
find_cmd = "rg"
},
media = {
backend = "ueberzug",
backend_options = {
xmove = -1,
ymove = -2,
warnings = true,
supress_backend_warning = false
},
backend = "ueberzug",
}
},
defaults = {
prompt_prefix = "λ ",
selection_caret = "-> ",
selection_caret = "> ",
mappings = {
i = {
["<C-h>"] = actions.which_key,
@ -37,18 +37,22 @@ return {
layout_config = {
width = 0.3,
height = 0.4,
},
},
},
planets = {
show_pluto = true,
},
find_files = {
disable_devicons = true
},
},
extensions = {}
})
keymap('n', '<leader><leader>', ':Telescope find_files<CR>', {})
keymap('n', '<leader>m', ':Telescope media<CR>', {})
keymap('n', '<leader>b', ':Telescope buffers<CR>', {})
keymap('n', '<leader>t', ':Telescope<CR>', {})
keymap('n', '<leader>g', ':Telescope live_grep<CR>', {})
require('telescope').load_extension('media_files')
end,
}