Compare commits
3 Commits
8a011ae3c6
...
trunk
| Author | SHA1 | Date | |
|---|---|---|---|
| 2ece296011 | |||
| dc78af93f9 | |||
| c95d6a5c62 |
@@ -16,7 +16,4 @@ COPY init.vim .
|
|||||||
RUN mkdir -p ~/.config/nvim \
|
RUN mkdir -p ~/.config/nvim \
|
||||||
&& mv ./init.vim ~/.config/nvim
|
&& mv ./init.vim ~/.config/nvim
|
||||||
|
|
||||||
RUN sh -c 'curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
|
RUN nvim -c "lua vim.pack.update()" -c "qall"
|
||||||
|
|
||||||
RUN nvim -c "PlugInstall" -c "qall" \
|
|
||||||
&& nvim -c "TSUpdate" -c "qall"
|
|
||||||
|
|||||||
101
init.vim
101
init.vim
@@ -7,54 +7,39 @@ let g:loaded_netrwPlugin = 1
|
|||||||
let &t_TI = "\<Esc>[>4;2m"
|
let &t_TI = "\<Esc>[>4;2m"
|
||||||
let &t_TE = "\<Esc>[>4;m"
|
let &t_TE = "\<Esc>[>4;m"
|
||||||
|
|
||||||
" Automatically install vim-plug plugin manager
|
lua <<
|
||||||
" https://github.com/junegunn/vim-plug/wiki/tips#automatic-installation
|
vim.pack.add({
|
||||||
let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim'
|
'https://github.com/nvim-tree/nvim-web-devicons', -- optional
|
||||||
if empty(glob(data_dir . '/autoload/plug.vim'))
|
'https://github.com/nvim-tree/nvim-tree.lua',
|
||||||
silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
|
|
||||||
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
|
|
||||||
endif
|
|
||||||
|
|
||||||
call plug#begin()
|
'https://github.com/nvim-treesitter/nvim-treesitter',
|
||||||
|
|
||||||
Plug 'nvim-tree/nvim-web-devicons' " optional
|
'https://github.com/Mofiqul/dracula.nvim',
|
||||||
Plug 'nvim-tree/nvim-tree.lua'
|
|
||||||
|
|
||||||
Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
|
'https://github.com/nvim-lualine/lualine.nvim',
|
||||||
|
|
||||||
"Plug 'mg979/vim-visual-multi', {'branch': 'master'}
|
'https://github.com/akinsho/bufferline.nvim',
|
||||||
|
|
||||||
Plug 'Mofiqul/dracula.nvim'
|
'https://github.com/nvim-lua/plenary.nvim',
|
||||||
|
'https://github.com/nvim-telescope/telescope.nvim',
|
||||||
|
|
||||||
Plug 'nvim-lualine/lualine.nvim'
|
-- For managing lsps
|
||||||
|
'https://github.com/williamboman/mason.nvim',
|
||||||
|
|
||||||
Plug 'akinsho/bufferline.nvim', { 'tag': '*' }
|
-- Delete, change and add surrounding pairs
|
||||||
|
'https://github.com/kylechui/nvim-surround',
|
||||||
|
|
||||||
Plug 'nvim-lua/plenary.nvim'
|
-- Indent line
|
||||||
Plug 'nvim-telescope/telescope.nvim', { 'branch': '0.1.x' }
|
'https://github.com/lukas-reineke/indent-blankline.nvim',
|
||||||
|
|
||||||
" Installation manager for 'ripgrep' search tool
|
'https://github.com/airblade/vim-gitgutter',
|
||||||
Plug 'iruzo/ripgrep.nvim'
|
|
||||||
|
|
||||||
" Not sure if this is useful?
|
-- Highlight syntax and support indent for MoonScript
|
||||||
" Plug 'rafcamlet/nvim-luapad'
|
'https://github.com/leafo/moonscript-vim',
|
||||||
|
}, {
|
||||||
" For managing lsps
|
confirm = false
|
||||||
Plug 'williamboman/mason.nvim'
|
})
|
||||||
Plug 'neovim/nvim-lspconfig'
|
.
|
||||||
|
|
||||||
" Delete, change and add surrounding pairs
|
|
||||||
Plug 'kylechui/nvim-surround'
|
|
||||||
|
|
||||||
" Indent line
|
|
||||||
Plug 'lukas-reineke/indent-blankline.nvim'
|
|
||||||
|
|
||||||
Plug 'airblade/vim-gitgutter'
|
|
||||||
|
|
||||||
" Highlight syntax and support indent for MoonScript
|
|
||||||
Plug 'leafo/moonscript-vim'
|
|
||||||
|
|
||||||
call plug#end()
|
|
||||||
|
|
||||||
colorscheme dracula
|
colorscheme dracula
|
||||||
set termguicolors
|
set termguicolors
|
||||||
@@ -201,43 +186,13 @@ require('telescope').setup({
|
|||||||
.
|
.
|
||||||
|
|
||||||
lua <<
|
lua <<
|
||||||
local lspconfig = require('lspconfig')
|
vim.lsp.config['lua_ls'] = {
|
||||||
local configs = require('lspconfig.configs')
|
cmd = { 'lua-language-server' },
|
||||||
|
|
||||||
if not configs.lua_ls then
|
|
||||||
configs.lua_ls = {
|
|
||||||
default_config = {
|
|
||||||
cmd = {vim.fn.expand('~/.local/bin/lua-language-server')},
|
|
||||||
filetypes = { 'lua' },
|
filetypes = { 'lua' },
|
||||||
single_file_support = true,
|
root_markers = { '.luarc.json', '.git' },
|
||||||
autostart = true,
|
settings = { Lua = { diagnostics = { globals = { "vim" } } } }
|
||||||
}
|
}
|
||||||
}
|
vim.lsp.enable('lua_ls')
|
||||||
end
|
|
||||||
|
|
||||||
lspconfig.lua_ls.setup({
|
|
||||||
settings = {
|
|
||||||
Lua = {
|
|
||||||
diagnostics = {
|
|
||||||
globals = { "love" },
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
lspconfig.cssls.setup({})
|
|
||||||
.
|
|
||||||
|
|
||||||
lua <<
|
|
||||||
-- require('lspconfig').lua_ls.setup({
|
|
||||||
-- settings = {
|
|
||||||
-- Lua = {
|
|
||||||
-- runtime = {
|
|
||||||
-- version = "LuaJIT"
|
|
||||||
-- }
|
|
||||||
-- }
|
|
||||||
-- }
|
|
||||||
-- })
|
|
||||||
.
|
.
|
||||||
|
|
||||||
lua require("mason").setup()
|
lua require("mason").setup()
|
||||||
|
|||||||
Reference in New Issue
Block a user