rewrite nvim config to lua
Signed-off-by: Lucas Sta Maria <lucas.stamaria@gmail.com>
This commit is contained in:
parent
8e420fbf97
commit
c293767edf
9 changed files with 294 additions and 10 deletions
110
.config/nvim/lua/plugins.lua
Normal file
110
.config/nvim/lua/plugins.lua
Normal file
|
@ -0,0 +1,110 @@
|
|||
local packer = require("packer")
|
||||
local use = packer.use
|
||||
|
||||
packer.startup(function()
|
||||
-- plugin/package manager
|
||||
use("wbthomason/packer.nvim")
|
||||
|
||||
-- lib
|
||||
use("nvim-lua/plenary.nvim")
|
||||
|
||||
-- language
|
||||
use("nvim-treesitter/nvim-treesitter")
|
||||
use("neovim/nvim-lspconfig")
|
||||
use("j-hui/fidget.nvim")
|
||||
|
||||
-- ui
|
||||
use("ayu-theme/ayu-vim")
|
||||
use("nvim-lua/popup.nvim")
|
||||
use("nvim-telescope/telescope.nvim")
|
||||
use("lewis6991/gitsigns.nvim")
|
||||
use("kyazdani42/nvim-web-devicons")
|
||||
use("kyazdani42/nvim-tree.lua")
|
||||
use("nvim-lualine/lualine.nvim")
|
||||
use("akinsho/toggleterm.nvim")
|
||||
|
||||
-- completion
|
||||
use("hrsh7th/nvim-cmp")
|
||||
use("hrsh7th/cmp-path")
|
||||
use("hrsh7th/cmp-buffer")
|
||||
use("hrsh7th/cmp-nvim-lsp")
|
||||
use("hrsh7th/cmp-nvim-lua")
|
||||
use("L3MON4D3/LuaSnip")
|
||||
use("saadparwaiz1/cmp_luasnip")
|
||||
|
||||
if packer_bootstrap then
|
||||
require('packer').sync()
|
||||
end
|
||||
end)
|
||||
|
||||
-- fidget
|
||||
require("fidget").setup {}
|
||||
|
||||
-- ayu
|
||||
vim.cmd([[let ayucolor="dark"]])
|
||||
vim.cmd([[colorscheme ayu]])
|
||||
|
||||
-- telescope
|
||||
require("telescope").setup {
|
||||
defaults = {
|
||||
mappings = {
|
||||
i = {
|
||||
["<esc>"] = require("telescope.actions").close
|
||||
},
|
||||
},
|
||||
pickers = {
|
||||
hidden = true,
|
||||
file_ignore_patterns = { ".git/" }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
-- git signs
|
||||
require('gitsigns').setup {
|
||||
signs = {
|
||||
add = {hl = 'GitSignsAdd' , text = '│', numhl='GitSignsAddNr' , linehl='GitSignsAddLn'},
|
||||
change = {hl = 'GitSignsChange', text = '│', numhl='GitSignsChangeNr', linehl='GitSignsChangeLn'},
|
||||
delete = {hl = 'GitSignsDelete', text = '│', numhl='GitSignsDeleteNr', linehl='GitSignsDeleteLn'},
|
||||
topdelete = {hl = 'GitSignsDelete', text = '│', numhl='GitSignsDeleteNr', linehl='GitSignsDeleteLn'},
|
||||
changedelete = {hl = 'GitSignsChange', text = '│', numhl='GitSignsChangeNr', linehl='GitSignsChangeLn'},
|
||||
},
|
||||
signcolumn = true,
|
||||
numhl = false,
|
||||
linehl = false,
|
||||
word_diff = false,
|
||||
watch_gitdir = {
|
||||
interval = 1500,
|
||||
follow_files = true
|
||||
},
|
||||
}
|
||||
|
||||
-- nvim-web-devicons
|
||||
require('nvim-web-devicons').setup {}
|
||||
|
||||
-- nvim-tree
|
||||
require('nvim-tree').setup {
|
||||
view = {
|
||||
width = 25,
|
||||
signcolumn = "no",
|
||||
},
|
||||
diagnostics = {
|
||||
enable = true,
|
||||
},
|
||||
git = {
|
||||
enable = true,
|
||||
ignore = true,
|
||||
timeout = 1500,
|
||||
}
|
||||
}
|
||||
|
||||
-- lualine
|
||||
require('lualine').setup {
|
||||
options = {
|
||||
theme = 'ayu_dark'
|
||||
},
|
||||
}
|
||||
|
||||
-- toggleterm
|
||||
require('toggleterm').setup {
|
||||
open_mapping = [[<leader>ot]]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue