chore(config): add fzf for neovim
parent
b576fd4fde
commit
01c68ce6b6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue