From c1bec17f77ab5ad2522702849164e04884e1179f Mon Sep 17 00:00:00 2001 From: Jean-Pierre Appel Date: Sat, 26 Aug 2023 21:18:50 -0400 Subject: moved to lazy.nvim, configured lsp --- nvim/lua/plugins/blankline.lua | 10 ++++++++++ nvim/lua/plugins/bufferline.lua | 17 +++++++++++++++++ nvim/lua/plugins/colorscheme.lua | 12 ++++++++++++ nvim/lua/plugins/godot.lua | 4 ++++ nvim/lua/plugins/init.lua | 40 ++++++++++++++++++++++++++++++++++++++++ nvim/lua/plugins/lspzero.lua | 15 +++++++++++++++ nvim/lua/plugins/lualine.lua | 36 ++++++++++++++++++++++++++++++++++++ nvim/lua/plugins/pandoc.lua | 10 ++++++++++ nvim/lua/plugins/telescope.lua | 7 +++++++ nvim/lua/plugins/treesitter.lua | 12 ++++++++++++ 10 files changed, 163 insertions(+) create mode 100644 nvim/lua/plugins/blankline.lua create mode 100644 nvim/lua/plugins/bufferline.lua create mode 100644 nvim/lua/plugins/colorscheme.lua create mode 100644 nvim/lua/plugins/godot.lua create mode 100644 nvim/lua/plugins/init.lua create mode 100644 nvim/lua/plugins/lspzero.lua create mode 100644 nvim/lua/plugins/lualine.lua create mode 100644 nvim/lua/plugins/pandoc.lua create mode 100644 nvim/lua/plugins/telescope.lua create mode 100644 nvim/lua/plugins/treesitter.lua (limited to 'nvim/lua/plugins') diff --git a/nvim/lua/plugins/blankline.lua b/nvim/lua/plugins/blankline.lua new file mode 100644 index 0000000..4e24f47 --- /dev/null +++ b/nvim/lua/plugins/blankline.lua @@ -0,0 +1,10 @@ +-- TODO: configure tree-sitter to color current indentation level +return { + 'lukas-reineke/indent-blankline.nvim', -- show indentation levels + dependencies = 'nvim-treesitter/nvim-treesitter', + opts = { + show_current_context = true, + show_current_context_start = true, + indent_blankline_use_treesiter = true, + } +} diff --git a/nvim/lua/plugins/bufferline.lua b/nvim/lua/plugins/bufferline.lua new file mode 100644 index 0000000..fce1b14 --- /dev/null +++ b/nvim/lua/plugins/bufferline.lua @@ -0,0 +1,17 @@ +return { + 'akinsho/bufferline.nvim', -- bufferline + version = "v4.*", + dependencies = 'nvim-tree/nvim-web-devicons', + config = function() + require('bufferline').setup({ + options = { + mode = "tabs", + show_tab_indicators = false, + hover = { + enabled = true, + delay = 200 + } + } + }) + end +} diff --git a/nvim/lua/plugins/colorscheme.lua b/nvim/lua/plugins/colorscheme.lua new file mode 100644 index 0000000..6df2325 --- /dev/null +++ b/nvim/lua/plugins/colorscheme.lua @@ -0,0 +1,12 @@ +return { + { + "catppuccin/nvim" , + name = "catpuccin", + enabled = true, + lazy = false, + priority = 1000, + config = function() + vim.cmd("colorscheme catppuccin-mocha") + end + }, +} diff --git a/nvim/lua/plugins/godot.lua b/nvim/lua/plugins/godot.lua new file mode 100644 index 0000000..79028a3 --- /dev/null +++ b/nvim/lua/plugins/godot.lua @@ -0,0 +1,4 @@ +return { + 'habamax/vim-godot', + ft = 'gdscript' +} diff --git a/nvim/lua/plugins/init.lua b/nvim/lua/plugins/init.lua new file mode 100644 index 0000000..8628e2e --- /dev/null +++ b/nvim/lua/plugins/init.lua @@ -0,0 +1,40 @@ +return { + + -- common dependacy + "nvim-lua/plenary.nvim", + + -- git + 'tpope/vim-fugitive', -- close to native git command integrations + + + -- completion + -- TODO:config completion and setup binds + 'hrsh7th/nvim-cmp', + { + 'hrsh7th/cmp-nvim-lsp', + dependencies = { {'hrsh7th/nvim-cmp'}, {'neovim/nvim-lspconfig'} } + }, + { + 'hrsh7th/cmp-path', + dependencies = { 'hrsh7th/nvim-cmp' } + }, + { + 'kdheepak/cmp-latex-symbols', + dependencies = { 'hrsh7th/nvim-cmp' } + }, + + + + + { + 'numToStr/Comment.nvim', -- faster commentting + lazy = false, + -- config = function() + -- require('Comment').setup() + -- end + }, + + -- cosmetic + -- 'kyazdani42/nvim-web-devicons', + +} diff --git a/nvim/lua/plugins/lspzero.lua b/nvim/lua/plugins/lspzero.lua new file mode 100644 index 0000000..bc16001 --- /dev/null +++ b/nvim/lua/plugins/lspzero.lua @@ -0,0 +1,15 @@ +return { + 'VonHeikemen/lsp-zero.nvim', + branch = 'v2.x', + dependencies = { + -- LSP Support + {'neovim/nvim-lspconfig'}, -- Required + {'williamboman/mason.nvim'}, -- Optional + {'williamboman/mason-lspconfig.nvim'}, -- Optional + + -- Autocompletion + {'hrsh7th/nvim-cmp'}, -- Required + {'hrsh7th/cmp-nvim-lsp'}, -- Required + {'L3MON4D3/LuaSnip'}, -- Required + } +} diff --git a/nvim/lua/plugins/lualine.lua b/nvim/lua/plugins/lualine.lua new file mode 100644 index 0000000..b2d4e34 --- /dev/null +++ b/nvim/lua/plugins/lualine.lua @@ -0,0 +1,36 @@ +return { + 'nvim-lualine/lualine.nvim', -- lualine + dependencies = { 'nvim-tree/nvim-web-devicons', opt = true }, + config = function() + require('lualine').setup({ + options = { + theme = 'auto', + globalstatus = true, + }, + -- tabline = { + -- lualine_a = {}, + -- lualine_b = {}, + -- lualine_c = {}, + -- lualine_x = {}, + -- lualine_y = {}, + -- lualine_z = {} + -- }, + -- winbar = { + -- lualine_a = {}, + -- lualine_b = {}, + -- lualine_c = {'filename'}, + -- lualine_x = {}, + -- lualine_y = {}, + -- lualine_z = {} + -- }, + -- inactive_winbar = { + -- lualine_a = {}, + -- lualine_b = {}, + -- lualine_c = {'filename'}, + -- lualine_x = {'location'}, + -- lualine_y = {}, + -- lualine_z = {} + -- }, + }) + end +} diff --git a/nvim/lua/plugins/pandoc.lua b/nvim/lua/plugins/pandoc.lua new file mode 100644 index 0000000..2758ada --- /dev/null +++ b/nvim/lua/plugins/pandoc.lua @@ -0,0 +1,10 @@ +return { + { + 'vim-pandoc/vim-pandoc', + ft = {"markdown", "pandoc"} + }, + { + 'vim-pandoc/vim-pandoc-syntax', + ft = {"markdown", "pandoc"} + } +} diff --git a/nvim/lua/plugins/telescope.lua b/nvim/lua/plugins/telescope.lua new file mode 100644 index 0000000..55bc045 --- /dev/null +++ b/nvim/lua/plugins/telescope.lua @@ -0,0 +1,7 @@ +return { + 'nvim-telescope/telescope.nvim', tag = '0.1.2', -- fuzzy finder + dependencies = { + 'nvim-lua/plenary.nvim', + 'nvim-tree/nvim-web-devicons' + } +} diff --git a/nvim/lua/plugins/treesitter.lua b/nvim/lua/plugins/treesitter.lua new file mode 100644 index 0000000..49ea257 --- /dev/null +++ b/nvim/lua/plugins/treesitter.lua @@ -0,0 +1,12 @@ +return { + 'nvim-treesitter/nvim-treesitter', + build = ':TSUpdate', + opts = { + ensure_installed = { "help", "lua", "python", "java", "javascript", "typescript", "c" }, + auto_install = true, + highlight = { + enable = true, + additional_vim_regex_highlighting = false + } + } +} -- cgit v1.2.3