diff --git a/nvim/init.vim b/nvim/init.vim new file mode 100644 index 0000000..6528b7c --- /dev/null +++ b/nvim/init.vim @@ -0,0 +1,2 @@ +lua require("init") + diff --git a/nvim/lua/init.lua b/nvim/lua/init.lua new file mode 100644 index 0000000..9c1bda4 --- /dev/null +++ b/nvim/lua/init.lua @@ -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", "", ":NvimTreeOpen", { silent = true }) + + require("nvim-tree").setup({ + auto_reload_on_write = true, + sort_by = "case_sensitive", + view = { + width = 30 + }, + filters = { + dotfiles = false + } + }) + end + } +}) diff --git a/nvim/lua/user/init.lua b/nvim/lua/user/init.lua deleted file mode 100644 index 7c85173..0000000 --- a/nvim/lua/user/init.lua +++ /dev/null @@ -1,3 +0,0 @@ -return { - colorscheme = "tokyonight-day" -} diff --git a/nvim/lua/user/plugins/community.lua b/nvim/lua/user/plugins/community.lua deleted file mode 100644 index d91edf1..0000000 --- a/nvim/lua/user/plugins/community.lua +++ /dev/null @@ -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 = "", - accept_word = false, - accept_line = false, - next = "", - prev = "", - dismiss = "", - }, - }, - }, - }, -} diff --git a/nvim/lua/user/plugins/mason.lua b/nvim/lua/user/plugins/mason.lua deleted file mode 100644 index f357cfe..0000000 --- a/nvim/lua/user/plugins/mason.lua +++ /dev/null @@ -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" }, - }, - }, -} diff --git a/nvim/lua/user/plugins/treesitter.lua b/nvim/lua/user/plugins/treesitter.lua deleted file mode 100644 index e34c5d4..0000000 --- a/nvim/lua/user/plugins/treesitter.lua +++ /dev/null @@ -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", - }, - }, -}