Compare commits
No commits in common. "b5eb3358a3f38d8cf03a15ae84256f31f10d6ee7" and "5ecfd698c41565a9071dcf0b83afe86450e5180f" have entirely different histories.
b5eb3358a3
...
5ecfd698c4
6 changed files with 46 additions and 2 deletions
25
gvimrc
Normal file
25
gvimrc
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
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)
|
15
vim/lua/lsp/setup.lua
Normal file
15
vim/lua/lsp/setup.lua
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
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 'config.neotree';
|
config = require 'pack.setup.neotree';
|
||||||
};
|
};
|
||||||
{
|
{
|
||||||
"stevearc/aerial.nvim", config = function()
|
"stevearc/aerial.nvim", config = function()
|
||||||
|
@ -28,7 +28,7 @@ use {
|
||||||
end
|
end
|
||||||
};
|
};
|
||||||
{
|
{
|
||||||
"hedyhli/outline.nvim", config = require 'config.outline';
|
"hedyhli/outline.nvim", config = require 'pack.setup.outline';
|
||||||
};
|
};
|
||||||
{ 'jinh0/eyeliner.nvim', config = function()
|
{ 'jinh0/eyeliner.nvim', config = function()
|
||||||
require('eyeliner').setup {
|
require('eyeliner').setup {
|
4
vimrc
4
vimrc
|
@ -6,6 +6,10 @@ 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