fix border chars

This commit is contained in:
ksyasuda 2022-02-11 11:57:44 -08:00
parent 27738885a7
commit f826490a51
3 changed files with 41 additions and 25 deletions

View File

@ -35,10 +35,6 @@ nmap Q !!$SHELL<CR>
nmap rn :lua vim.lsp.buf.rename()<CR> nmap rn :lua vim.lsp.buf.rename()<CR>
nmap wa :lua vim.lsp.buf.add_workspace_folder()<CR>
nmap wl :lua print(vim.inspect(vim.lsp.buf.list_workspace_folders()))<CR>
nmap wr :lua vim.lsp.buf.remove_workspace_folder()<CR>
nmap <leader>as :FloatermNew --title=aniwrapper aniwrapper -qtdoomone -D144<CR> nmap <leader>as :FloatermNew --title=aniwrapper aniwrapper -qtdoomone -D144<CR>
nmap <leader>ad :FloatermNew --title=aniwrapper ani-cli -q720p -cd/home/sudacode/Videos/sauce -D144<CR> nmap <leader>ad :FloatermNew --title=aniwrapper ani-cli -q720p -cd/home/sudacode/Videos/sauce -D144<CR>
@ -99,6 +95,10 @@ nnoremap <silent> <Leader>tc :DashboardChangeColorscheme<CR>
nmap <leader>to :SymbolsOutline<CR> nmap <leader>to :SymbolsOutline<CR>
nmap <leader>tt :FloatermToggle vsplit-term<CR> nmap <leader>tt :FloatermToggle vsplit-term<CR>
nmap <leader>wa :lua vim.lsp.buf.add_workspace_folder()<CR>
nmap <leader>wl :lua print(vim.inspect(vim.lsp.buf.list_workspace_folders()))<CR>
nmap <leader>wr :lua vim.lsp.buf.remove_workspace_folder()<CR>
nnoremap <leader>xd <cmd>TroubleToggle document_diagnostics<cr> nnoremap <leader>xd <cmd>TroubleToggle document_diagnostics<cr>
nnoremap <leader>xl <cmd>TroubleToggle loclist<cr> nnoremap <leader>xl <cmd>TroubleToggle loclist<cr>
nnoremap <leader>xq <cmd>TroubleToggle quickfix<cr> nnoremap <leader>xq <cmd>TroubleToggle quickfix<cr>

View File

@ -1,7 +1,8 @@
require('goto-preview').setup { require('goto-preview').setup {
width = 120; -- Width of the floating window width = 120; -- Width of the floating window
height = 20; -- Height of the floating window height = 20; -- Height of the floating window
border = {"", "" ,"", "", "", "", "", ""}; -- Border characters of the floating window border = {"", "" ,"", "", "", "", "", ""}; -- Border characters of the floating window
-- border = {"┌", "─" ,"┐", "│", "┘", "─", "└", "│"}; -- Border characters of the floating window
default_mappings = false; -- Bind default mappings default_mappings = false; -- Bind default mappings
debug = false; -- Print debug information debug = false; -- Print debug information
opacity = 25; -- 0-100 opacity level of the floating window where 100 is fully transparent. opacity = 25; -- 0-100 opacity level of the floating window where 100 is fully transparent.

View File

@ -44,15 +44,30 @@ end
vim.cmd [[autocmd! ColorScheme * highlight NormalFloat guibg=#1f2335]] vim.cmd [[autocmd! ColorScheme * highlight NormalFloat guibg=#1f2335]]
vim.cmd [[autocmd! ColorScheme * highlight FloatBorder guifg=white guibg=#1f2335]] vim.cmd [[autocmd! ColorScheme * highlight FloatBorder guifg=white guibg=#1f2335]]
-- squared corners
-- local border = {
-- {"┌", "FloatBorder"},
-- {"─", "FloatBorder"},
-- {"┐", "FloatBorder"},
-- {"|", "FloatBorder"},
-- {"┘", "FloatBorder"},
-- {"─", "FloatBorder"},
-- {"└", "FloatBorder"},
-- {"|", "FloatBorder"},
-- }
-- rounded
local border = { local border = {
{"🭽", "FloatBorder"}, {"", "FloatBorder"},
{"", "FloatBorder"}, {"", "FloatBorder"},
{"🭾", "FloatBorder"}, {"", "FloatBorder"},
{"", "FloatBorder"}, {"", "FloatBorder"},
{"🭿", "FloatBorder"}, {"", "FloatBorder"},
{"", "FloatBorder"}, {"", "FloatBorder"},
{"🭼", "FloatBorder"}, {"", "FloatBorder"},
{"", "FloatBorder"}, {"", "FloatBorder"},
} }
local handlers = { local handlers = {
@ -85,7 +100,7 @@ local DEFAULT_SETTINGS = {
}, },
-- The directory in which to install all servers. -- The directory in which to install all servers.
install_root_dir = "~/.vim/lsp", -- install_root_dir = "/home/sudacode/.vim/lsp",
pip = { pip = {
-- These args will be added to `pip install` calls. Note that setting extra args might impact intended behavior -- These args will be added to `pip install` calls. Note that setting extra args might impact intended behavior
@ -95,7 +110,7 @@ local DEFAULT_SETTINGS = {
install_args = {}, install_args = {},
}, },
on_attach = on_attach, on_attach = on_attach,
-- handlers=handlers, handlers=handlers,
-- Controls to which degree logs are written to the log file. It's useful to set this to vim.log.levels.DEBUG when -- Controls to which degree logs are written to the log file. It's useful to set this to vim.log.levels.DEBUG when
-- debugging issues with server installations. -- debugging issues with server installations.
@ -161,13 +176,13 @@ end)
-- Use a loop to conveniently call 'setup' on multiple servers and -- Use a loop to conveniently call 'setup' on multiple servers and
-- map buffer local keybindings when the language server attaches -- map buffer local keybindings when the language server attaches
-- local servers = { 'pyright', 'bashls', 'sqlls' } local servers = { 'pyright', 'bashls', 'sqls', 'vimls', 'yamlls', 'dockerls', 'html', 'sumneko_lua', 'jsonls', 'dotls' }
-- for _, lsp in pairs(servers) do for _, lsp in pairs(servers) do
-- require('lspconfig')[lsp].setup { require('lspconfig')[lsp].setup {
-- on_attach = on_attach, on_attach = on_attach,
-- flags = { flags = {
-- -- This will be the default in neovim 0.7+ -- This will be the default in neovim 0.7+
-- debounce_text_changes = 150, debounce_text_changes = 150,
-- } }
-- } }
-- end end