Initial commit
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
local builtin = require('telescope.builtin')
|
||||
vim.keymap.set('n', ',', builtin.find_files, {desc = "Telescope find files"})
|
||||
vim.keymap.set('n', '<A-,>', builtin.live_grep, {desc = "Telescope live grep"})
|
||||
vim.keymap.set('n', '-', '<CMD>Oil<CR>', { desc = "Open parent directory" })
|
||||
vim.keymap.set({'n','v','i','t'}, '<A-.>', '<CMD>ToggleTerm<CR>', { desc = "Toggle Terminal" })
|
||||
@@ -0,0 +1,35 @@
|
||||
-- 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 = { "habamax" } },
|
||||
-- automatically check for plugin updates
|
||||
checker = { enabled = true },
|
||||
})
|
||||
@@ -0,0 +1,5 @@
|
||||
return {
|
||||
"windwp/nvim-autopairs",
|
||||
event = "InsertEnter",
|
||||
opts = {}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
return {
|
||||
'saghen/blink.cmp',
|
||||
dependencies = { 'rafamadriz/friendly-snippets' },
|
||||
version = '1.*',
|
||||
opts = {
|
||||
keymap = {
|
||||
preset = 'default',
|
||||
['<Tab>'] = {'accept', 'fallback'},
|
||||
['<A-k>'] = {'select_prev', 'fallback'},
|
||||
['<A-j>'] = {'select_next', 'fallback'},
|
||||
},
|
||||
appearance = {
|
||||
nerd_font_variant = 'mono'
|
||||
},
|
||||
completion = { documentation = { auto_show = false } },
|
||||
sources = {
|
||||
default = { 'lsp', 'path', 'snippets', 'buffer' },
|
||||
},
|
||||
fuzzy = { implementation = "prefer_rust_with_warning" }
|
||||
},
|
||||
opts_extend = { "sources.default" }
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
return {
|
||||
'numToStr/Comment.nvim',
|
||||
opts = {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
return {
|
||||
"neanias/everforest-nvim",
|
||||
lazy = true,
|
||||
priority = 1000,
|
||||
config = function ()
|
||||
background = "soft"
|
||||
ui_contrast = "low"
|
||||
end
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
return {
|
||||
"lukas-reineke/indent-blankline.nvim",
|
||||
main = "ibl",
|
||||
---@module "ibl"
|
||||
---@type ibl.config
|
||||
opts = {},
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
return {
|
||||
"neovim/nvim-lspconfig",
|
||||
dependencies = {
|
||||
"folke/lazydev.nvim",
|
||||
ft = "lua",
|
||||
opts = {
|
||||
library = {
|
||||
{ path = "${3rd}/luv/library", words = { "vim%.uv" } },
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
return {
|
||||
"nvim-lualine/lualine.nvim",
|
||||
dependencies = {
|
||||
-- display macro recording
|
||||
{ "yavorski/lualine-macro-recording.nvim" }
|
||||
},
|
||||
opts = {
|
||||
sections = {
|
||||
-- add to section of your choice
|
||||
lualine_c = { "macro_recording", "%S" },
|
||||
},
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
return {
|
||||
'nvim-lualine/lualine.nvim',
|
||||
dependencies = { 'nvim-tree/nvim-web-devicons' },
|
||||
opts = {
|
||||
options = {
|
||||
theme = 'everforest'
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
return {
|
||||
"williamboman/mason.nvim",
|
||||
opts = {}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
return {
|
||||
"folke/noice.nvim",
|
||||
event = "VeryLazy",
|
||||
opts = {
|
||||
-- add any options here
|
||||
},
|
||||
dependencies = {
|
||||
"MunifTanjim/nui.nvim",
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
return {
|
||||
"mfussenegger/nvim-lint",
|
||||
event = {
|
||||
"BufReadPre",
|
||||
"BufNewFile",
|
||||
},
|
||||
-- config = function ()
|
||||
-- local lint = require("lint")
|
||||
-- local lint_augroup = vim.api.nvim_create_augroup("lint", {clear = true})
|
||||
-- vim.api.nvim_create_autocmd({"BufEnter", "BufWritePost", "InsertLeave"}, {
|
||||
-- group = lint_augroup,
|
||||
-- callback = function ()
|
||||
-- lint.try_lint()
|
||||
-- end,
|
||||
-- })
|
||||
-- end
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
return {
|
||||
"windwp/nvim-ts-autotag",
|
||||
lazy = false,
|
||||
dependencies = {
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
},
|
||||
opts = {}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
return { "stevearc/oil.nvim",
|
||||
keys = {
|
||||
{'-', '<CMD>Oil<CR>', desc = "Open parent directory" }
|
||||
},
|
||||
opts = { delete_to_trash = true }
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
return {
|
||||
'maxmx03/solarized.nvim',
|
||||
lazy = false,
|
||||
priority = 1000,
|
||||
---@type solarized.config
|
||||
opts = {},
|
||||
config = function(_, opts)
|
||||
vim.o.termguicolors = true
|
||||
vim.o.background = 'light'
|
||||
require('solarized').setup(opts)
|
||||
vim.cmd.colorscheme 'solarized'
|
||||
end,
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
return {
|
||||
"nvim-telescope/telescope.nvim",
|
||||
keys = {
|
||||
{',', "<cmd>Telescope find_files<cr>", desc = "Telescope find files"},
|
||||
{'<A-,>', "<cmd>Telescope live_grep<cr>", desc = "Telescope live grep"}
|
||||
},
|
||||
requires = { "nvim-lua/plenary.nvim", "BurntSushi/ripgrep" },
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
return {
|
||||
"akinsho/toggleterm.nvim",
|
||||
keys = {
|
||||
{'<A-.>', '<CMD>ToggleTerm<CR>', mode = {"n","v","i","t"}, desc = "Toggle Terminal" }
|
||||
},
|
||||
opts = {}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
return {
|
||||
"folke/tokyonight.nvim",
|
||||
lazy = true,
|
||||
priority = 1000,
|
||||
opts = {}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
return {
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
build = ":TSUpdate",
|
||||
config = function ()
|
||||
local configs = require("nvim-treesitter.configs")
|
||||
|
||||
configs.setup({
|
||||
ensure_installed = { "c", "lua", "vim", "vimdoc", "query", "elixir", "heex", "javascript", "html" },
|
||||
sync_install = false,
|
||||
highlight = { enable = true },
|
||||
indent = { enable = true },
|
||||
})
|
||||
end
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
return {
|
||||
"RRethy/vim-illuminate",
|
||||
lazy = false,
|
||||
config = function()
|
||||
require('illuminate').configure({})
|
||||
end
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
return {
|
||||
"folke/which-key.nvim",
|
||||
event = "VeryLazy",
|
||||
opts = {
|
||||
triggers = {
|
||||
{ "<leader>", mode = { "n", "v" } },
|
||||
}
|
||||
},
|
||||
keys = {
|
||||
{
|
||||
"<leader>?",
|
||||
function()
|
||||
require("which-key").show({ global = false })
|
||||
end,
|
||||
desc = "Buffer Local Keymaps (which-key)",
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,73 @@
|
||||
-- Plugins
|
||||
return require('packer').startup(function()
|
||||
use "wbthomason/packer.nvim"
|
||||
use "folke/tokyonight.nvim"
|
||||
use "mikavilpas/yazi.nvim"
|
||||
use {"akinsho/toggleterm.nvim", tag = '*', config = function()
|
||||
require("toggleterm").setup()
|
||||
end}
|
||||
use {"nvim-treesitter/nvim-treesitter",
|
||||
run = ':TSUpdate',
|
||||
config = function()
|
||||
require('nvim-treesitter.configs').setup {
|
||||
ensure_installed = {'bash', 'c', 'css', 'dockerfile', 'fish', 'html', 'java', 'javascript', 'json', 'lua', 'luadoc', 'luap', 'markdown', 'markdown_inline', 'nix', 'python', 'query', 'regex', 'ruby', 'rust', 'scss', 'svelte', 'tsx', 'typescript', 'vim', 'vimdoc', 'vue', 'yaml',},
|
||||
sync_install = false,
|
||||
auto_install = true,
|
||||
highlight = {
|
||||
enabled = true,
|
||||
additional_vim_regex_highlighting = false
|
||||
},
|
||||
indent = {
|
||||
enable = true,
|
||||
},
|
||||
autotag = {
|
||||
enable = true,
|
||||
},
|
||||
rainbow = {
|
||||
enable = true,
|
||||
extended_mode = true,
|
||||
max_file_lines = 1000,
|
||||
},
|
||||
}
|
||||
end
|
||||
}
|
||||
use {"windwp/nvim-autopairs",
|
||||
event="InsertEnter",
|
||||
config = function ()
|
||||
require("nvim-autopairs").setup {}
|
||||
end
|
||||
}
|
||||
use {"nvim-telescope/telescope.nvim",
|
||||
tag = '0.1.8',
|
||||
requires = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
"BurntSushi/ripgrep"
|
||||
}
|
||||
}
|
||||
use {"stevearc/oil.nvim",
|
||||
config = function()
|
||||
require("oil").setup({
|
||||
delete_to_trash = true,
|
||||
})
|
||||
end,
|
||||
}
|
||||
|
||||
-- LSP Setup
|
||||
use "williamboman/mason.nvim"
|
||||
use { "neovim/nvim-lspconfig",
|
||||
dependencies = {
|
||||
"folke/lazydev.nvim",
|
||||
ft = "lua",
|
||||
opts = {
|
||||
library = {
|
||||
{ path = "${3rd}/luv/library", words = { "vim%.uv" } },
|
||||
},
|
||||
},
|
||||
},
|
||||
config = function()
|
||||
require("lspconfig").lua_ls.setup() {}
|
||||
end,
|
||||
}
|
||||
|
||||
|
||||
end)
|
||||
Reference in New Issue
Block a user