Compare commits

..

2 commits

Author SHA1 Message Date
b5eb3358a3 Refactor vim configurations 2024-03-07 16:54:16 +01:00
08691ae356 Remove gvim configuration 2024-03-07 16:49:04 +01:00
6 changed files with 2 additions and 46 deletions

25
gvimrc
View file

@ -1,25 +0,0 @@
set guioptions-=T
set guioptions-=m
set guioptions-=e
set cursorline " Highlight cursor line
if has("unix")
let g:font_temp="\\\\\\@<! \\zs\\d\\+"
elseif has("win32")
let g:font_temp=".*:h\\zs\\d\\+"
set linespace=0
end
let s:fontsize = match(&guifont, "")
function! SetFontSize(size)
if exists("g:font_temp")
let &guifont=substitute(&guifont, g:font_temp, a:size, "g")
end
endfun
" Override using ranger for picking files
nnoremap <leader><space> :e %:p:h<CR>
command! -nargs=1 SetFontSize call SetFontSize(<f-args>)
command! ResetFontSize call SetFontSize(s:fontsize)

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 "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
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'
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