chore(config): add fzf for neovim

main
sudo pacman -Syu 2022-06-14 12:50:51 +07:00
parent b576fd4fde
commit 01c68ce6b6
No known key found for this signature in database
GPG Key ID: D6CB5C6C567C47B0
1 changed files with 8 additions and 5 deletions

View File

@ -34,14 +34,20 @@ vim.opt.guifont = {
-- https://github.com/neovim/neovim/issues/16416
vim.keymap.set("i", "<C-c>", "<Esc>")
-- https://github.com/mvdan/gofumpt#vim-go
vim.g.go_gopls_gofumpt = 1
-- Disable showmode when use lualine
vim.opt.showmode = false
-- https://github.com/kyazdani42/nvim-tree.lua#setup
vim.keymap.set("n", "<C-n>", ":NvimTreeToggle<CR>")
vim.keymap.set("n", "<leader>r", ":NvimTreeRefresh<CR>")
vim.keymap.set("n", "<leader>n", ":NvimTreeFindFile<CR>")
-- https://github.com/mvdan/gofumpt#vim-go
vim.g.go_gopls_gofumpt = 1
-- https://github.com/junegunn/fzf/blob/master/README-VIM.md
vim.opt.rtp:append({ "~/.fzf" })
-- https://github.com/neovide/neovide/wiki/Configuration
vim.g.neovide_cursor_vfx_mode = "railgun"
@ -74,9 +80,6 @@ require("packer").startup(function()
use("fatih/vim-go")
end)
-- Disable showmode when use lualine
vim.opt.showmode = false
-- https://github.com/nvim-lualine/lualine.nvim#configuring-lualine-in-initvim
local lualine_theme = require("lualine.themes.iceberg")
if vim.env.COLORTERM == "truecolor" then