summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/plugins
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/lua/plugins')
-rw-r--r--.config/nvim/lua/plugins/download.lua25
-rw-r--r--.config/nvim/lua/plugins/init.lua5
-rw-r--r--.config/nvim/lua/plugins/knap.lua8
-rw-r--r--.config/nvim/lua/plugins/lsp.lua3
-rw-r--r--.config/nvim/lua/plugins/treesitter.lua16
5 files changed, 57 insertions, 0 deletions
diff --git a/.config/nvim/lua/plugins/download.lua b/.config/nvim/lua/plugins/download.lua
new file mode 100644
index 0000000..0241f26
--- /dev/null
+++ b/.config/nvim/lua/plugins/download.lua
@@ -0,0 +1,25 @@
+-- Lazy.nvim plugin manager
+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({
+ { 'nvim-telescope/telescope.nvim', tag = '0.1.6', dependencies = { 'nvim-lua/plenary.nvim' } },
+ { "nvim-treesitter/nvim-treesitter", build = ":TSUpdate" },
+ { "mbbill/undotree" },
+ {'neovim/nvim-lspconfig'},
+ { "sainnhe/everforest" },
+ {"Civitasv/cmake-tools.nvim"},
+ {"frabjous/knap"},
+})
+
diff --git a/.config/nvim/lua/plugins/init.lua b/.config/nvim/lua/plugins/init.lua
new file mode 100644
index 0000000..c4b8ea8
--- /dev/null
+++ b/.config/nvim/lua/plugins/init.lua
@@ -0,0 +1,5 @@
+require("plugins.download")
+require("plugins.treesitter")
+require("plugins.lsp")
+require("plugins.knap")
+
diff --git a/.config/nvim/lua/plugins/knap.lua b/.config/nvim/lua/plugins/knap.lua
new file mode 100644
index 0000000..6ee24c1
--- /dev/null
+++ b/.config/nvim/lua/plugins/knap.lua
@@ -0,0 +1,8 @@
+local gknapsettings = {
+ texoutputext = "pdf",
+ textopdf = "tectonic %docroot%",
+ textopdfviewerlaunch = "sioyek %outputfile%",
+ textopdfviewerrefresh = "kill -HUP %pid%"
+}
+vim.g.knap_settings = gknapsettings
+
diff --git a/.config/nvim/lua/plugins/lsp.lua b/.config/nvim/lua/plugins/lsp.lua
new file mode 100644
index 0000000..84d4aec
--- /dev/null
+++ b/.config/nvim/lua/plugins/lsp.lua
@@ -0,0 +1,3 @@
+-- Enable preconfigured LSP's
+vim.lsp.enable({"clangd", "gopls", "texlab"})
+
diff --git a/.config/nvim/lua/plugins/treesitter.lua b/.config/nvim/lua/plugins/treesitter.lua
new file mode 100644
index 0000000..b75b2b3
--- /dev/null
+++ b/.config/nvim/lua/plugins/treesitter.lua
@@ -0,0 +1,16 @@
+require'nvim-treesitter.configs'.setup {
+ ensure_installed = { "c" },
+ sync_install = false,
+ auto_install = true,
+
+ highlight = {
+ enable = true,
+
+ -- Setting this to true will run `:h syntax` and tree-sitter at the same time.
+ -- Set this to `true` if you depend on 'syntax' being enabled (like for indentation).
+ -- Using this option may slow down your editor, and you may see some duplicate highlights.
+ -- Instead of true it can also be a list of languages
+ additional_vim_regex_highlighting = false,
+ },
+}
+