Refactor vim configurations
This commit is contained in:
parent
08691ae356
commit
b5eb3358a3
5 changed files with 2 additions and 21 deletions
|
@ -1,15 +0,0 @@
|
||||||
local config = require 'lspconfig'
|
|
||||||
|
|
||||||
local default = { on_attach = require 'lsp.attach' }
|
|
||||||
for _, language in ipairs {
|
|
||||||
"html",
|
|
||||||
"cssls",
|
|
||||||
"clangd",
|
|
||||||
"tsserver",
|
|
||||||
"lua_ls",
|
|
||||||
"solargraph",
|
|
||||||
"standardrb",
|
|
||||||
"zls",
|
|
||||||
} do
|
|
||||||
config[language].setup(default)
|
|
||||||
end
|
|
|
@ -20,7 +20,7 @@ use {
|
||||||
"nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
|
"nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
|
||||||
"MunifTanjim/nui.nvim",
|
"MunifTanjim/nui.nvim",
|
||||||
};
|
};
|
||||||
config = require 'pack.setup.neotree';
|
config = require 'config.neotree';
|
||||||
};
|
};
|
||||||
{
|
{
|
||||||
"stevearc/aerial.nvim", config = function()
|
"stevearc/aerial.nvim", config = function()
|
||||||
|
@ -28,7 +28,7 @@ use {
|
||||||
end
|
end
|
||||||
};
|
};
|
||||||
{
|
{
|
||||||
"hedyhli/outline.nvim", config = require 'pack.setup.outline';
|
"hedyhli/outline.nvim", config = require 'config.outline';
|
||||||
};
|
};
|
||||||
{ 'jinh0/eyeliner.nvim', config = function()
|
{ 'jinh0/eyeliner.nvim', config = function()
|
||||||
require('eyeliner').setup {
|
require('eyeliner').setup {
|
4
vimrc
4
vimrc
|
@ -6,10 +6,6 @@ set runtimepath=$VIMRUNTIME,$HOME/.config/nvim,$HOME/.vim
|
||||||
let &rtp=&rtp.','.expand('<sfile>:p:h').'/vim'
|
let &rtp=&rtp.','.expand('<sfile>:p:h').'/vim'
|
||||||
let &rtp=&rtp.','.expand('<sfile>:p:h').'/vim/pack/*/start/*'
|
let &rtp=&rtp.','.expand('<sfile>:p:h').'/vim/pack/*/start/*'
|
||||||
|
|
||||||
if has("nvim")
|
|
||||||
lua require("pack/setup")
|
|
||||||
end
|
|
||||||
|
|
||||||
set nocompatible
|
set nocompatible
|
||||||
|
|
||||||
au VimEnter * TSEnable highlight
|
au VimEnter * TSEnable highlight
|
||||||
|
|
Loading…
Reference in a new issue