diff options
author | Josh Rahm <rahm@google.com> | 2024-03-27 14:30:32 -0600 |
---|---|---|
committer | Josh Rahm <rahm@google.com> | 2024-03-27 14:30:32 -0600 |
commit | 2708ef39e6da0b55b4a5006403aa1c5b9a3b58fa (patch) | |
tree | 8ca7d6928d9f86ae1c35bc28c149a1b9771e1886 /init.vim | |
parent | 90716a6b31d0cdeee7fe333a292c62470c027f1a (diff) | |
download | config.vim-2708ef39e6da0b55b4a5006403aa1c5b9a3b58fa.tar.gz config.vim-2708ef39e6da0b55b4a5006403aa1c5b9a3b58fa.tar.bz2 config.vim-2708ef39e6da0b55b4a5006403aa1c5b9a3b58fa.zip |
Fixed issues with LuaLine and Telescope find_files.
Diffstat (limited to 'init.vim')
-rw-r--r-- | init.vim | 33 |
1 files changed, 18 insertions, 15 deletions
@@ -46,7 +46,8 @@ Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'} Plug 'nvim-treesitter/nvim-treesitter-textobjects' Plug 'nvim-treesitter/playground' Plug 'onsails/lspkind.nvim' -Plug 'tpope/vim-surround' +" Plug 'tpope/vim-surround' +Plug 'kylechui/nvim-surround' Plug 'vito-c/jq.vim' if has('rneovim') @@ -75,7 +76,7 @@ set updatetime=1000 let mapleader=" " function! Jump(...) - normal! '[ + normal! `[ endfunction noremap <silent> g. <cmd>set operatorfunc=Jump<cr>g@ @@ -102,7 +103,7 @@ noremap <leader>p <plug>(SynStack) noremap <leader>ff <cmd>Telescope find_files<cr> noremap <M-f> <cmd>Telescope find_files<cr> function! s:find_in_dir() - exec "Telescope find_files search_dirs={\"" . escape(expand('%:h'), ' ') . "\"}" + exec "Telescope find_files search_dirs={\"" . escape(resolve(expand('%:h')), ' ') . "\"} hidden=true" endfunction noremap <M-F> <cmd>call <sid>find_in_dir()<cr> @@ -114,13 +115,8 @@ noremap ^ ^zH noremap <leader>t <cmd>TroubleToggle<cr> -function! HighlightColorColumns() abort - hi MyColorColumn guifg=#644141 guibg=none gui=None -endfunction -call HighlightColorColumns() augroup InitVim au! - au ColorScheme * call HighlightColorColumns() autocmd BufRead *.java,*.c,*.cpp,*.cxx,*.hs TSBufEnable highlight " Automatically stop highligting things when leaving insert mode. If I want @@ -303,14 +299,19 @@ lua << EOF borderchars = { " ", " ", " ", " ", " ", " ", " ", " " }, prompt_prefix = '🞂 ', selection_caret = '🞂 ', - layout_strategy = "center", + layout_strategy = "horizontal", results_title = false, sorting_strategy = "ascending", + pickers = { + find_files = { + hidden = true + } + }, -- path_display = "shorten", layout_config = { - center = { - width = 0.5, - height = 0.5, + horizontal = { + width = 0.66, + height = 0.66, }, -- other layout configuration here }, @@ -320,10 +321,9 @@ lua << EOF }) require("virt-column").setup({ - char = '│', - highlight = "MyColorColumn" + char = '▐', + highlight = "ColorColumnLine" }) - vim.fn.HighlightColorColumns() function run_format_code() local lsps = vim.lsp.buf_get_clients() @@ -334,5 +334,8 @@ lua << EOF end end + require("nvim-surround").setup({}) + + EOF |