mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
Compare commits
No commits in common. "954a4a1cad62c2c3e3a25c8c78723ff5b0d5a60a" and "4dcafbe2bc3aa1a9b453264f7fbbd43cef327413" have entirely different histories.
954a4a1cad
...
4dcafbe2bc
13
ginit.vim
13
ginit.vim
@ -59,16 +59,3 @@ if exists('g:fvim_loaded')
|
|||||||
|
|
||||||
FVimUIPopupMenu v:false
|
FVimUIPopupMenu v:false
|
||||||
endif
|
endif
|
||||||
|
|
||||||
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
|
||||||
" config for neovide "
|
|
||||||
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
|
||||||
if exists("g:neovide")
|
|
||||||
set guifont=Hack\ NF:h10
|
|
||||||
let g:neovide_transparency = 1.0
|
|
||||||
let g:neovide_cursor_animation_length = 0.1
|
|
||||||
let g:neovide_cursor_trail_size=0.3
|
|
||||||
let g:neovide_cursor_vfx_mode = ""
|
|
||||||
let g:neovide_cursor_vfx_particle_density=10.0
|
|
||||||
let g:neovide_cursor_vfx_opacity=150.0
|
|
||||||
endif
|
|
||||||
|
|||||||
7
init.lua
7
init.lua
@ -8,16 +8,15 @@
|
|||||||
-- Email: jdhao@hotmail.com
|
-- Email: jdhao@hotmail.com
|
||||||
-- Blog: https://jdhao.github.io/
|
-- Blog: https://jdhao.github.io/
|
||||||
|
|
||||||
local api = vim.api
|
|
||||||
local utils = require "utils"
|
|
||||||
|
|
||||||
-- check if we have the latest stable version of nvim
|
-- check if we have the latest stable version of nvim
|
||||||
local expected_ver = "0.7.2"
|
local expected_ver = "0.7.2"
|
||||||
|
|
||||||
|
local utils = require "utils"
|
||||||
local nvim_ver = utils.get_nvim_version()
|
local nvim_ver = utils.get_nvim_version()
|
||||||
|
|
||||||
if nvim_ver ~= expected_ver then
|
if nvim_ver ~= expected_ver then
|
||||||
local msg = string.format("Unsupported nvim version: expect %s, but got %s instead!", expected_ver, nvim_ver)
|
local msg = string.format("Unsupported nvim version: expect %s, but got %s instead!", expected_ver, nvim_ver)
|
||||||
api.nvim_err_writeln(msg)
|
vim.api.nvim_echo({ { msg, "ErrorMsg" } }, false, {})
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,3 @@
|
|||||||
local api = vim.api
|
|
||||||
local keymap = vim.keymap
|
local keymap = vim.keymap
|
||||||
|
|
||||||
require('hlslens').setup({
|
require('hlslens').setup({
|
||||||
@ -13,7 +12,7 @@ local activate_hlslens = function(direction)
|
|||||||
msg = msg:sub(13)
|
msg = msg:sub(13)
|
||||||
|
|
||||||
if not status then
|
if not status then
|
||||||
api.nvim_err_writeln(msg)
|
vim.api.nvim_echo({{msg, "ErrorMsg"}}, false, {})
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
require('hlslens').start()
|
require('hlslens').start()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user