add config files, script to copy them to the repo and update readme
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
vim.o.mouse = "a"
|
||||
vim.o.selection="exclusive"
|
||||
vim.o.selectmode="mouse,key"
|
||||
vim.o.keymodel="startsel,stopsel"
|
||||
|
||||
-- Configs
|
||||
require("config.lazy")
|
||||
-- Plugins
|
||||
require("plugins.colorscheme")
|
||||
require("plugins.nvim-web-devicons")
|
||||
require("plugins.nvim-tree")
|
||||
require("plugins.fzf-lua")
|
||||
require("plugins.lualine")
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
-- Bootstrap lazy.nvim
|
||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||
if not (vim.uv or vim.loop).fs_stat(lazypath) then
|
||||
local lazyrepo = "https://github.com/folke/lazy.nvim.git"
|
||||
local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
|
||||
if vim.v.shell_error ~= 0 then
|
||||
vim.api.nvim_echo({
|
||||
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" },
|
||||
{ out, "WarningMsg" },
|
||||
{ "\nPress any key to exit..." },
|
||||
}, true, {})
|
||||
vim.fn.getchar()
|
||||
os.exit(1)
|
||||
end
|
||||
end
|
||||
vim.opt.rtp:prepend(lazypath)
|
||||
|
||||
-- Make sure to setup `mapleader` and `maplocalleader` before
|
||||
-- loading lazy.nvim so that mappings are correct.
|
||||
-- This is also a good place to setup other settings (vim.opt)
|
||||
vim.g.mapleader = " "
|
||||
vim.g.maplocalleader = "\\"
|
||||
|
||||
-- Setup lazy.nvim
|
||||
require("lazy").setup({
|
||||
spec = {
|
||||
-- import your plugins
|
||||
{ import = "plugins" },
|
||||
},
|
||||
-- Configure any other settings here. See the documentation for more details.
|
||||
-- colorscheme that will be used when installing plugins.
|
||||
install = { colorscheme = { } },
|
||||
-- automatically check for plugin updates
|
||||
checker = { enabled = false },
|
||||
})
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
return {
|
||||
"neoclide/coc.nvim",
|
||||
branch = "release",
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
return {
|
||||
"navarasu/onedark.nvim",
|
||||
priority = 1000, -- make sure to load this before all the other start plugins
|
||||
config = function()
|
||||
require('onedark').setup {
|
||||
style = 'cool'
|
||||
}
|
||||
-- Enable theme
|
||||
require('onedark').load()
|
||||
end
|
||||
}
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
return {
|
||||
"ibhagwan/fzf-lua",
|
||||
-- optional for icon support
|
||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||
-- or if using mini.icons/mini.nvim
|
||||
-- dependencies = { "echasnovski/mini.icons" },
|
||||
opts = {},
|
||||
config = function()
|
||||
require("fzf-lua").setup({
|
||||
fzf_bin = "sk",
|
||||
grep = {
|
||||
glob_flag = "--glob",
|
||||
}
|
||||
})
|
||||
end,
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
return {
|
||||
'nvim-lualine/lualine.nvim',
|
||||
dependencies = { 'nvim-tree/nvim-web-devicons' },
|
||||
config = function()
|
||||
require("lualine").setup({
|
||||
sections = {
|
||||
lualine_a = { "mode" },
|
||||
lualine_b = { "branch", "diff", "diagnostics" },
|
||||
lualine_c = { "filename" },
|
||||
lualine_x = { "encoding", "fileformat", "filetype" },
|
||||
lualine_y = { "progress" },
|
||||
lualine_z = { "location" },
|
||||
}
|
||||
})
|
||||
end,
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
return {
|
||||
"nvim-tree/nvim-tree.lua",
|
||||
version = "1.14.0",
|
||||
lazy = false,
|
||||
dependencies = {
|
||||
"nvim-tree/nvim-web-devicons",
|
||||
},
|
||||
config = function()
|
||||
vim.g.loaded_netrw = 1
|
||||
vim.g.loaded_netrwPlugin = 1
|
||||
require("nvim-tree").setup {}
|
||||
end,
|
||||
}
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
return {
|
||||
"nvim-tree/nvim-web-devicons",
|
||||
opts = {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user