do things

This commit is contained in:
Christoph J. Scherr 2024-07-04 17:08:26 +02:00
parent 4d741c98d6
commit 695b4a28e4
3 changed files with 82 additions and 6 deletions

View File

@ -146,7 +146,6 @@ local servers = {
cmake = {},
yamlls = {},
texlab = {},
csharp_ls = {},
basedpyright = {
root_dir = vim.loop.cwd,
flags = { debounce_text_changes = 300 },

View File

@ -49,11 +49,6 @@ return {
-- You can put your default mappings / updates / etc. in here
-- All the info you're looking for is in `:help telescope.setup()`
--
-- defaults = {
-- mappings = {
-- i = { ['<c-enter>'] = 'to_fuzzy_refine' },
-- },
-- },
-- pickers = {}
extensions = {
['ui-select'] = {
@ -61,6 +56,10 @@ return {
},
},
defaults = {
mappings = {
i = { ['<c-enter>'] = 'to_fuzzy_refine' },
n = { ['q'] = require('telescope.actions').close },
},
vimgrep_arguments = {
'rg',
'-L',

View File

@ -2,6 +2,82 @@ return {
{
'nvim-tree/nvim-tree.lua',
cmd = { 'NvimTreeToggle', 'NvimTreeFocus' },
opts = {
filters = {
dotfiles = false,
exclude = { vim.fn.stdpath 'config' .. '/lua/custom' },
},
disable_netrw = true,
hijack_netrw = true,
hijack_cursor = true,
hijack_unnamed_buffer_when_opening = false,
sync_root_with_cwd = true,
update_focused_file = {
enable = true,
update_root = false,
},
view = {
adaptive_size = false,
side = 'left',
width = 30,
preserve_window_proportions = true,
},
git = {
enable = false,
ignore = true,
},
filesystem_watchers = {
enable = true,
},
actions = {
open_file = {
resize_window = true,
},
},
renderer = {
root_folder_label = false,
highlight_git = false,
highlight_opened_files = 'none',
indent_markers = {
enable = false,
},
icons = {
show = {
file = true,
folder = true,
folder_arrow = true,
git = false,
},
glyphs = {
default = '󰈚',
symlink = '',
folder = {
default = '',
empty = '',
empty_open = '',
open = '',
symlink = '',
symlink_open = '',
arrow_open = '',
arrow_closed = '',
},
git = {
unstaged = '',
staged = '',
unmerged = '',
renamed = '',
untracked = '',
deleted = '',
ignored = '',
},
},
},
},
},
config = function(_, opts)
require('nvim-tree').setup(opts)
end,
@ -75,6 +151,8 @@ return {
'<c-r>',
-- spelling
'z=',
'o',
'O',
},
triggers_blacklist = {
-- list of mode / prefixes that should never be hooked by WhichKey