Added most essential plugins with packer according to the primeagen

master
Niclas Thobaben 2024-03-08 22:25:21 +01:00
parent 1c62270dc3
commit 67bbdbb41f
8 changed files with 63 additions and 1 deletions

View File

@ -0,0 +1 @@
vim.keymap.set("n", "<leader>gs", vim.cmd.Git)

View File

@ -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,
},
}

View File

@ -0,0 +1 @@
vim.keymap.set("n", "<leader>u", vim.cmd.UndotreeToggle)

View File

@ -1,2 +1 @@
require("nthobaben")
print("hello world")

View File

@ -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" })

View File

@ -1 +1,3 @@
require("nthobaben.remap")
require("nthobaben.color")
require("nthobaben.remap")

View File

@ -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)

View File

@ -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"
}
}