diff --git a/after/plugin/fugitive.lua b/after/plugin/fugitive.lua new file mode 100644 index 0000000..80c9070 --- /dev/null +++ b/after/plugin/fugitive.lua @@ -0,0 +1 @@ +vim.keymap.set("n", "gs", vim.cmd.Git) diff --git a/after/plugin/treesitter.lua b/after/plugin/treesitter.lua new file mode 100644 index 0000000..6cf12e4 --- /dev/null +++ b/after/plugin/treesitter.lua @@ -0,0 +1,17 @@ +require'nvim-treesitter.configs'.setup { + -- A list of parser names, or "all" (the five listed parsers should always be installed) + ensure_installed = { "c", "lua", "vim", "vimdoc", "query", "javascript", "typescript", "go" }, + + -- Install parsers synchronously (only applied to `ensure_installed`) + sync_install = true, + + -- Automatically install missing parsers when entering buffer + -- Recommendation: set to false if you don't have `tree-sitter` CLI installed locally + auto_install = true, + + + highlight = { + enable = true, + additional_vim_regex_highlighting = false, + }, +} diff --git a/after/plugin/undotree.lua b/after/plugin/undotree.lua new file mode 100644 index 0000000..b6b9276 --- /dev/null +++ b/after/plugin/undotree.lua @@ -0,0 +1 @@ +vim.keymap.set("n", "u", vim.cmd.UndotreeToggle) diff --git a/init.lua b/init.lua index 9175cc7..ad8b8e1 100644 --- a/init.lua +++ b/init.lua @@ -1,2 +1 @@ require("nthobaben") -print("hello world") diff --git a/lua/nthobaben/color.lua b/lua/nthobaben/color.lua new file mode 100644 index 0000000..d20ef4f --- /dev/null +++ b/lua/nthobaben/color.lua @@ -0,0 +1,9 @@ +color = color or "tairiki" +vim.cmd.colorscheme(color) + +-- Making the background transparent +-- Guake doen't seem to like it tho and only half the screen is transparent +--vim.api.nvim_set_hl(0, "Normal", { bg = "none" }) +--vim.api.nvim_set_hl(0, "NormalFloat", { bg = "none" }) + + diff --git a/lua/nthobaben/init.lua b/lua/nthobaben/init.lua index a8c4829..3cedbc2 100644 --- a/lua/nthobaben/init.lua +++ b/lua/nthobaben/init.lua @@ -1 +1,3 @@ require("nthobaben.remap") +require("nthobaben.color") +require("nthobaben.remap") diff --git a/lua/nthobaben/packer.lua b/lua/nthobaben/packer.lua index 6f75fef..fd1f80a 100644 --- a/lua/nthobaben/packer.lua +++ b/lua/nthobaben/packer.lua @@ -12,4 +12,17 @@ return require('packer').startup(function(use) -- or , branch = '0.1.x', requires = { {'nvim-lua/plenary.nvim'} } } + + -- tairiki color scheme + use 'deparr/tairiki.nvim' + require('tairiki').setup { + style = 'dark' + } + require('tairiki').load() + + use({'nvim-treesitter/nvim-treesitter', {run = ':TSUpdate'}}) + + use 'mbbill/undotree' + use 'tpope/vim-fugitive' end) + diff --git a/plugin/packer_compiled.lua b/plugin/packer_compiled.lua index a505ae9..e8e7b39 100644 --- a/plugin/packer_compiled.lua +++ b/plugin/packer_compiled.lua @@ -74,6 +74,11 @@ end time([[try_loadstring definition]], false) time([[Defining packer_plugins]], true) _G.packer_plugins = { + ["nvim-treesitter"] = { + loaded = true, + path = "/home/niclasthobaben/.local/share/nvim/site/pack/packer/start/nvim-treesitter", + url = "https://github.com/nvim-treesitter/nvim-treesitter" + }, ["packer.nvim"] = { loaded = true, path = "/home/niclasthobaben/.local/share/nvim/site/pack/packer/start/packer.nvim", @@ -84,10 +89,25 @@ _G.packer_plugins = { path = "/home/niclasthobaben/.local/share/nvim/site/pack/packer/start/plenary.nvim", url = "https://github.com/nvim-lua/plenary.nvim" }, + ["tairiki.nvim"] = { + loaded = true, + path = "/home/niclasthobaben/.local/share/nvim/site/pack/packer/start/tairiki.nvim", + url = "https://github.com/deparr/tairiki.nvim" + }, ["telescope.nvim"] = { loaded = true, path = "/home/niclasthobaben/.local/share/nvim/site/pack/packer/start/telescope.nvim", url = "https://github.com/nvim-telescope/telescope.nvim" + }, + undotree = { + loaded = true, + path = "/home/niclasthobaben/.local/share/nvim/site/pack/packer/start/undotree", + url = "https://github.com/mbbill/undotree" + }, + ["vim-fugitive"] = { + loaded = true, + path = "/home/niclasthobaben/.local/share/nvim/site/pack/packer/start/vim-fugitive", + url = "https://github.com/tpope/vim-fugitive" } }