[nvim] basic config
This commit is contained in:
parent
9fc89fe51f
commit
9e27886698
9 changed files with 194 additions and 0 deletions
13
.config/nvim/lua/config/lazy.lua
Normal file
13
.config/nvim/lua/config/lazy.lua
Normal file
|
@ -0,0 +1,13 @@
|
|||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||
if not (vim.uv or vim.loop).fs_stat(lazypath) then
|
||||
vim.fn.system({
|
||||
"git",
|
||||
"clone",
|
||||
"--filter=blob:none",
|
||||
"https://github.com/folke/lazy.nvim.git",
|
||||
"--branch=stable", -- latest stable release
|
||||
lazypath,
|
||||
})
|
||||
end
|
||||
vim.opt.rtp:prepend(lazypath)
|
||||
|
10
.config/nvim/lua/plugins/colorscheme.lua
Normal file
10
.config/nvim/lua/plugins/colorscheme.lua
Normal file
|
@ -0,0 +1,10 @@
|
|||
return {
|
||||
{
|
||||
"catppuccin/nvim",
|
||||
name = "catppuccin",
|
||||
priority = 1000,
|
||||
config = function()
|
||||
vim.cmd.colorscheme "catppuccin-macchiato"
|
||||
end
|
||||
}
|
||||
}
|
1
.config/nvim/lua/plugins/devicons.lua
Normal file
1
.config/nvim/lua/plugins/devicons.lua
Normal file
|
@ -0,0 +1 @@
|
|||
return { 'nvim-tree/nvim-web-devicons', version = false }
|
11
.config/nvim/lua/plugins/lsp.lua
Normal file
11
.config/nvim/lua/plugins/lsp.lua
Normal file
|
@ -0,0 +1,11 @@
|
|||
return {{'VonHeikemen/lsp-zero.nvim', branch = 'v4.x'},
|
||||
{'neovim/nvim-lspconfig'},
|
||||
{'hrsh7th/cmp-nvim-lsp'},
|
||||
{'hrsh7th/nvim-cmp'},
|
||||
{
|
||||
"L3MON4D3/LuaSnip",
|
||||
-- follow latest release.
|
||||
version = "v2.*", -- Replace <CurrentMajor> by the latest released major (first number of latest release)
|
||||
-- install jsregexp (optional!).
|
||||
build = "make install_jsregexp"
|
||||
}}
|
1
.config/nvim/lua/plugins/mini.lua
Normal file
1
.config/nvim/lua/plugins/mini.lua
Normal file
|
@ -0,0 +1 @@
|
|||
return { 'echasnovski/mini.icons', version = false }
|
5
.config/nvim/lua/plugins/telescope.lua
Normal file
5
.config/nvim/lua/plugins/telescope.lua
Normal file
|
@ -0,0 +1,5 @@
|
|||
return {
|
||||
'nvim-telescope/telescope.nvim',
|
||||
tag = '0.1.8',
|
||||
dependencies = { 'nvim-lua/plenary.nvim' }
|
||||
}
|
6
.config/nvim/lua/plugins/treesitter.lua
Normal file
6
.config/nvim/lua/plugins/treesitter.lua
Normal file
|
@ -0,0 +1,6 @@
|
|||
return {
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
build = function()
|
||||
require("nvim-treesitter.install").update({ with_sync = true })()
|
||||
end,
|
||||
}
|
18
.config/nvim/lua/plugins/whichkey.lua
Normal file
18
.config/nvim/lua/plugins/whichkey.lua
Normal file
|
@ -0,0 +1,18 @@
|
|||
return {
|
||||
"folke/which-key.nvim",
|
||||
event = "VeryLazy",
|
||||
opts = {
|
||||
-- your configuration comes here
|
||||
-- or leave it empty to use the default settings
|
||||
-- refer to the configuration section below
|
||||
},
|
||||
keys = {
|
||||
{
|
||||
"<leader>?",
|
||||
function()
|
||||
require("which-key").show({ global = false })
|
||||
end,
|
||||
desc = "Buffer Local Keymaps (which-key)",
|
||||
},
|
||||
},
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue