Refactor vim configurations

This commit is contained in:
Talia 2024-03-07 16:54:16 +01:00
parent 08691ae356
commit b5eb3358a3
5 changed files with 2 additions and 21 deletions

View file

@ -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

View file

@ -20,7 +20,7 @@ use {
"nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
"MunifTanjim/nui.nvim",
};
config = require 'pack.setup.neotree';
config = require 'config.neotree';
};
{
"stevearc/aerial.nvim", config = function()
@ -28,7 +28,7 @@ use {
end
};
{
"hedyhli/outline.nvim", config = require 'pack.setup.outline';
"hedyhli/outline.nvim", config = require 'config.outline';
};
{ 'jinh0/eyeliner.nvim', config = function()
require('eyeliner').setup {

4
vimrc
View file

@ -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/pack/*/start/*'
if has("nvim")
lua require("pack/setup")
end
set nocompatible
au VimEnter * TSEnable highlight