mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
add js highlighting and ls
This commit is contained in:
parent
2f05d9a195
commit
0b10584e67
@ -35,6 +35,8 @@ Plug 'folke/tokyonight.nvim', { 'branch': 'main' }
|
|||||||
Plug 'https://git.sr.ht/~whynothugo/lsp_lines.nvim'
|
Plug 'https://git.sr.ht/~whynothugo/lsp_lines.nvim'
|
||||||
Plug 'RRethy/vim-illuminate'
|
Plug 'RRethy/vim-illuminate'
|
||||||
Plug 'lervag/vimtex'
|
Plug 'lervag/vimtex'
|
||||||
|
Plug 'yuezk/vim-js'
|
||||||
|
Plug 'MaxMEllon/vim-jsx-pretty'
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
set title
|
set title
|
||||||
@ -54,6 +56,8 @@ let g:tokyonight_italic_functions = 1
|
|||||||
let g:lightline = { 'colorscheme': 'tokyonight' }
|
let g:lightline = { 'colorscheme': 'tokyonight' }
|
||||||
colorscheme tokyonight
|
colorscheme tokyonight
|
||||||
|
|
||||||
|
let g:used_javascript_libs = 'react'
|
||||||
|
|
||||||
let g:vimtex_view_method = 'zathura'
|
let g:vimtex_view_method = 'zathura'
|
||||||
let g:vimtex#re#neocomplete =
|
let g:vimtex#re#neocomplete =
|
||||||
\ '\v\\%('
|
\ '\v\\%('
|
||||||
@ -87,8 +91,15 @@ local rt = require('rust-tools')
|
|||||||
rt.setup({
|
rt.setup({
|
||||||
server = {
|
server = {
|
||||||
on_attach = function(_, bufnr)
|
on_attach = function(_, bufnr)
|
||||||
vim.keymap.set("n", "<C-space>", rt.hover_actions.hover_actions, { buffer = bufnr })
|
vim.keymap.set("n", "<C-space>", rt.hover_actions.hover_actions, {
|
||||||
vim.keymap.set("n", "<Leader>a", rt.code_action_group.code_action_group, { buffer = bufnr })
|
buffer = bufnr
|
||||||
|
})
|
||||||
|
vim.keymap.set(
|
||||||
|
"n",
|
||||||
|
"<Leader>a",
|
||||||
|
rt.code_action_group.code_action_group,
|
||||||
|
{ buffer = bufnr }
|
||||||
|
)
|
||||||
end,
|
end,
|
||||||
settings = {
|
settings = {
|
||||||
["rust-analyzer"] = {
|
["rust-analyzer"] = {
|
||||||
@ -176,6 +187,7 @@ cmp.setup({
|
|||||||
})
|
})
|
||||||
|
|
||||||
require('lspconfig').texlab.setup({})
|
require('lspconfig').texlab.setup({})
|
||||||
|
require('lspconfig').tsserver.setup({})
|
||||||
|
|
||||||
require('lsp_lines').setup()
|
require('lsp_lines').setup()
|
||||||
EOF
|
EOF
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user