mirror of
https://github.com/aminnairi/dotfiles.git
synced 2026-09-14 11:02:13 +02:00
complete rewrite of nvim
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
lua require("init")
|
||||
|
||||
@@ -0,0 +1,70 @@
|
||||
vim.o.shiftwidth = 2
|
||||
vim.o.softtabstop = 2
|
||||
vim.o.tabstop = 2
|
||||
vim.o.number = true
|
||||
vim.o.relativenumber = true
|
||||
|
||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||
|
||||
if not 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)
|
||||
|
||||
require("lazy").setup({
|
||||
{
|
||||
"folke/tokyonight.nvim",
|
||||
lazy = false,
|
||||
priority = 1000,
|
||||
init = function()
|
||||
vim.cmd([[colorscheme tokyonight]])
|
||||
end,
|
||||
opts = {
|
||||
style = "storm",
|
||||
light_style = "day",
|
||||
transparent = false,
|
||||
terminal_colors = true,
|
||||
style = {
|
||||
comments = {
|
||||
italic = true
|
||||
},
|
||||
keywords = {
|
||||
italic = true
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
"nvim-tree/nvim-tree.lua",
|
||||
lazy = false,
|
||||
dependencies = {
|
||||
"nvim-tree/nvim-web-devicons",
|
||||
},
|
||||
config = function()
|
||||
vim.g.loaded_netrw = 1
|
||||
vim.g.loaded_netrwPlugin = 1
|
||||
vim.opt.termguicolors = true
|
||||
|
||||
vim.api.nvim_set_keymap("n", "<C-n>", ":NvimTreeOpen<CR>", { silent = true })
|
||||
|
||||
require("nvim-tree").setup({
|
||||
auto_reload_on_write = true,
|
||||
sort_by = "case_sensitive",
|
||||
view = {
|
||||
width = 30
|
||||
},
|
||||
filters = {
|
||||
dotfiles = false
|
||||
}
|
||||
})
|
||||
end
|
||||
}
|
||||
})
|
||||
@@ -1,3 +0,0 @@
|
||||
return {
|
||||
colorscheme = "tokyonight-day"
|
||||
}
|
||||
@@ -1,21 +0,0 @@
|
||||
return {
|
||||
"AstroNvim/astrocommunity",
|
||||
{ import = "astrocommunity.colorscheme.tokyonight" },
|
||||
{ import = "astrocommunity.completion.copilot-lua-cmp" },
|
||||
{ import = "astrocommunity.completion.copilot-lua" },
|
||||
{
|
||||
"copilot.lua",
|
||||
opts = {
|
||||
suggestion = {
|
||||
keymap = {
|
||||
accept = "<C-l>",
|
||||
accept_word = false,
|
||||
accept_line = false,
|
||||
next = "<C-.>",
|
||||
prev = "<C-,>",
|
||||
dismiss = "<C/>",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -1,41 +0,0 @@
|
||||
return {
|
||||
-- use mason-lspconfig to configure LSP installations
|
||||
{
|
||||
"williamboman/mason-lspconfig.nvim",
|
||||
-- overrides `require("mason-lspconfig").setup(...)`
|
||||
opts = {
|
||||
ensure_installed = {
|
||||
"lua_ls",
|
||||
"tsserver",
|
||||
"vimls",
|
||||
"yamlls",
|
||||
"bashls",
|
||||
"angularls",
|
||||
"elmls",
|
||||
"ansiblels",
|
||||
"docker_compose_language_service",
|
||||
"dockerls",
|
||||
"jsonls",
|
||||
"marksman",
|
||||
"pyright",
|
||||
"svelte",
|
||||
"volar",
|
||||
},
|
||||
},
|
||||
},
|
||||
-- use mason-null-ls to configure Formatters/Linter installation for null-ls sources
|
||||
{
|
||||
"jay-babu/mason-null-ls.nvim",
|
||||
-- overrides `require("mason-null-ls").setup(...)`
|
||||
opts = {
|
||||
-- ensure_installed = { "prettier", "stylua" },
|
||||
},
|
||||
},
|
||||
{
|
||||
"jay-babu/mason-nvim-dap.nvim",
|
||||
-- overrides `require("mason-nvim-dap").setup(...)`
|
||||
opts = {
|
||||
-- ensure_installed = { "python" },
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -1,26 +0,0 @@
|
||||
return {
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
opts = {
|
||||
ensure_installed = {
|
||||
"lua",
|
||||
"dart",
|
||||
"dockerfile",
|
||||
"elm",
|
||||
"fish",
|
||||
"html",
|
||||
"css",
|
||||
"javascript",
|
||||
"jsonc",
|
||||
"make",
|
||||
"python",
|
||||
"php",
|
||||
"rust",
|
||||
"sql",
|
||||
"svelte",
|
||||
"tsx",
|
||||
"twig",
|
||||
"vue",
|
||||
"yaml",
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user