mirror of
https://github.com/ksyasuda/rice.git
synced 2024-11-22 03:19:58 -08:00
fix border chars
This commit is contained in:
parent
27738885a7
commit
f826490a51
@ -35,10 +35,6 @@ nmap Q !!$SHELL<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>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>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>xl <cmd>TroubleToggle loclist<cr>
|
||||
nnoremap <leader>xq <cmd>TroubleToggle quickfix<cr>
|
||||
|
@ -1,7 +1,8 @@
|
||||
require('goto-preview').setup {
|
||||
width = 120; -- Width 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
|
||||
debug = false; -- Print debug information
|
||||
opacity = 25; -- 0-100 opacity level of the floating window where 100 is fully transparent.
|
||||
|
@ -44,15 +44,30 @@ end
|
||||
vim.cmd [[autocmd! ColorScheme * highlight NormalFloat 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 = {
|
||||
{"🭽", "FloatBorder"},
|
||||
{"▔", "FloatBorder"},
|
||||
{"🭾", "FloatBorder"},
|
||||
{"▕", "FloatBorder"},
|
||||
{"🭿", "FloatBorder"},
|
||||
{"▁", "FloatBorder"},
|
||||
{"🭼", "FloatBorder"},
|
||||
{"▏", "FloatBorder"},
|
||||
{"╭", "FloatBorder"},
|
||||
{"─", "FloatBorder"},
|
||||
{"╮", "FloatBorder"},
|
||||
{"│", "FloatBorder"},
|
||||
{"╯", "FloatBorder"},
|
||||
{"─", "FloatBorder"},
|
||||
{"╰", "FloatBorder"},
|
||||
{"│", "FloatBorder"},
|
||||
}
|
||||
|
||||
local handlers = {
|
||||
@ -85,7 +100,7 @@ local DEFAULT_SETTINGS = {
|
||||
},
|
||||
|
||||
-- The directory in which to install all servers.
|
||||
install_root_dir = "~/.vim/lsp",
|
||||
-- install_root_dir = "/home/sudacode/.vim/lsp",
|
||||
|
||||
pip = {
|
||||
-- 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 = {},
|
||||
},
|
||||
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
|
||||
-- debugging issues with server installations.
|
||||
@ -161,13 +176,13 @@ end)
|
||||
|
||||
-- Use a loop to conveniently call 'setup' on multiple servers and
|
||||
-- map buffer local keybindings when the language server attaches
|
||||
-- local servers = { 'pyright', 'bashls', 'sqlls' }
|
||||
-- for _, lsp in pairs(servers) do
|
||||
-- require('lspconfig')[lsp].setup {
|
||||
-- on_attach = on_attach,
|
||||
-- flags = {
|
||||
-- -- This will be the default in neovim 0.7+
|
||||
-- debounce_text_changes = 150,
|
||||
-- }
|
||||
-- }
|
||||
-- end
|
||||
local servers = { 'pyright', 'bashls', 'sqls', 'vimls', 'yamlls', 'dockerls', 'html', 'sumneko_lua', 'jsonls', 'dotls' }
|
||||
for _, lsp in pairs(servers) do
|
||||
require('lspconfig')[lsp].setup {
|
||||
on_attach = on_attach,
|
||||
flags = {
|
||||
-- This will be the default in neovim 0.7+
|
||||
debounce_text_changes = 150,
|
||||
}
|
||||
}
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user