update vimrc from hermia
This commit is contained in:
parent
c864b6df9f
commit
9cac6e0f85
2 changed files with 162 additions and 150 deletions
|
|
@ -25,6 +25,16 @@ nvim_lsp.rust_analyzer.setup({
|
|||
nvim_lsp.gopls.setup({ on_attach = on_attach })
|
||||
nvim_lsp.pyright.setup({ on_attach = on_attach })
|
||||
nvim_lsp.clangd.setup({ on_attach = on_attach })
|
||||
nvim_lsp.tsserver.setup {
|
||||
cmd = { "/home/barak/.yarn/bin/typescript-language-server", "--stdio" }
|
||||
}
|
||||
nvim_lsp.vuels.setup {
|
||||
cmd = { "/home/barak/.yarn/bin/vls" }
|
||||
}
|
||||
|
||||
nvim_lsp.svelte.setup {
|
||||
cmd = { "/home/barak/.yarn/bin/svelteserver", "--stdio" }
|
||||
}
|
||||
|
||||
local runtime_path = vim.split(package.path, ';')
|
||||
table.insert(runtime_path, "lua/?.lua")
|
||||
|
|
@ -462,7 +472,8 @@ local function rust_whereify_line(line, var_name)
|
|||
local brace = string.find(out, "%{")
|
||||
if brace == nil then brace = string.len(out) end
|
||||
|
||||
out = string.insert(out, "\n"..whitespace.."where\n"..whitespace.." "..var_name..": ,\n"..whitespace, brace - 1)
|
||||
out = string.insert(out, "\n" .. whitespace .. "where\n" .. whitespace .. " " .. var_name .. ": ,\n" .. whitespace,
|
||||
brace - 1)
|
||||
|
||||
return string.split(out, "\n")
|
||||
end
|
||||
|
|
|
|||
9
.vimrc
9
.vimrc
|
|
@ -171,7 +171,7 @@ Plug 'plytophogy/vim-virtualenv'
|
|||
Plug 'lunaru/vim-less'
|
||||
Plug 'hylang/vim-hy', {'for': 'hy'}
|
||||
"Plug 'mhartington/nvim-typescript'
|
||||
Plug 'leafgarland/typescript-vim'
|
||||
"Plug 'leafgarland/typescript-vim'
|
||||
Plug 'leafOfTree/vim-svelte-plugin'
|
||||
"Plug 'posva/vim-vue'
|
||||
Plug 'Shougo/context_filetype.vim'
|
||||
|
|
@ -272,9 +272,10 @@ nnoremap <silent> gr <cmd>lua require('telescope.builtin').lsp_references({ini
|
|||
nnoremap <silent> g0 <cmd>lua vim.lsp.buf.document_symbol()<CR>
|
||||
nnoremap <silent> gW <cmd>lua vim.lsp.buf.workspace_symbol()<CR>
|
||||
"nnoremap <silent> gd <cmd>lua vim.lsp.buf.declaration()<CR>
|
||||
"nnoremap <silent> ga <cmd>lua vim.lsp.buf.code_action()<CR>
|
||||
nnoremap <silent> ga <cmd>lua require('telescope.builtin').lsp_code_actions({initial_mode = "normal"})<cr>
|
||||
vnoremap <silent> ga :<C-U>lua require('telescope.builtin').lsp_range_code_actions({initial_mode = "normal"})<cr>
|
||||
nnoremap <silent> ga <cmd>lua vim.lsp.buf.code_action()<CR>
|
||||
"nnoremap <silent> ga <cmd>lua require('telescope.builtin').lsp_code_actions({initial_mode = "normal"})<cr>
|
||||
vnoremap <silent> ga <cmd>lua vim.lsp.buf.range_code_action()<CR>
|
||||
"vnoremap <silent> ga :<C-U>lua require('telescope.builtin').lsp_range_code_actions({initial_mode = "normal"})<cr>
|
||||
"nnoremap <silent> ge <cmd>lua vim.lsp.diagnostic.show_line_diagnostics({show_header = false, focusable = false})<CR>
|
||||
"nnoremap <silent> ge <cmd>lua vim.diagnostic.open_float({focusable = false})<CR>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue