add theme; add plugin to show indent; config LSP
This commit is contained in:
parent
ab22c12695
commit
4d1e5dc92c
|
@ -6,10 +6,17 @@ call plug#begin(has('nvim') ? stdpath('data') . '/plugged' : '~/.vim/plugged')
|
|||
|
||||
" Declare the list of plugins.
|
||||
Plug 'neovim/nvim-lspconfig'
|
||||
|
||||
Plug 'kyazdani42/nvim-web-devicons' " for file icons
|
||||
Plug 'kyazdani42/nvim-tree.lua'
|
||||
|
||||
Plug 'akinsho/toggleterm.nvim'
|
||||
|
||||
Plug 'lukas-reineke/indent-blankline.nvim'
|
||||
|
||||
" Declare the theme
|
||||
Plug 'projekt0n/github-nvim-theme'
|
||||
|
||||
" List ends here. Plugins become visible to Vim after this call.
|
||||
call plug#end()
|
||||
|
||||
|
@ -20,3 +27,5 @@ call plug#end()
|
|||
execute 'source' "~/.config/nvim/plugins.vim.d/nvim-lspconfig.vim"
|
||||
execute 'source' "~/.config/nvim/plugins.vim.d/nvim-tree.vim"
|
||||
execute 'source' "~/.config/nvim/plugins.vim.d/toggleterm.vim"
|
||||
execute 'source' "~/.config/nvim/plugins.vim.d/github-nvim-theme.vim"
|
||||
execute 'source' "~/.config/nvim/plugins.vim.d/indent-blankline.vim"
|
||||
|
|
3
plugins.vim.d/github-nvim-theme.vim
Normal file
3
plugins.vim.d/github-nvim-theme.vim
Normal file
|
@ -0,0 +1,3 @@
|
|||
lua << EOF
|
||||
require('github-theme').setup()
|
||||
EOF
|
9
plugins.vim.d/indent-blankline.vim
Normal file
9
plugins.vim.d/indent-blankline.vim
Normal file
|
@ -0,0 +1,9 @@
|
|||
lua << EOF
|
||||
|
||||
require("indent_blankline").setup {
|
||||
-- for example, context is off by default, use this to turn it on
|
||||
-- show_current_context = true,
|
||||
-- show_current_context_start = true,
|
||||
filetype = {}
|
||||
}
|
||||
EOF
|
|
@ -2,11 +2,8 @@
|
|||
" config of LSP
|
||||
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||
|
||||
" lua << EOF
|
||||
" require'lspconfig'.pyright.setup{}
|
||||
" EOF
|
||||
|
||||
lua << EOF
|
||||
|
||||
local nvim_lsp = require('lspconfig')
|
||||
|
||||
-- Use an on_attach function to only map the following keys
|
||||
|
@ -44,7 +41,7 @@ end
|
|||
|
||||
-- Use a loop to conveniently call 'setup' on multiple servers and
|
||||
-- map buffer local keybindings when the language server attaches
|
||||
local servers = { 'pyright', 'rust_analyzer', 'tsserver' }
|
||||
local servers = { 'pyright', 'rust_analyzer', 'tsserver', 'html' }
|
||||
for _, lsp in ipairs(servers) do
|
||||
nvim_lsp[lsp].setup {
|
||||
on_attach = on_attach,
|
||||
|
@ -53,4 +50,5 @@ for _, lsp in ipairs(servers) do
|
|||
}
|
||||
}
|
||||
end
|
||||
|
||||
EOF
|
||||
|
|
Loading…
Reference in a new issue