commit 82856e85736e4b8931de10adb8fa585d703aa33d
parent 1b060b0a8ad16cba47ddfa61a9cd68ad7d55be00
Author: Andrew <andrewlaack1@gmail.com>
Date: Sat, 23 Nov 2024 03:19:37 -0600
Added codereformatter
Diffstat:
3 files changed, 107 insertions(+), 79 deletions(-)
diff --git a/lua/core/keymaps.lua b/lua/core/keymaps.lua
@@ -136,4 +136,4 @@ vim.keymap.set("n", "-", [[<cmd>vertical resize -5<cr>]]) -- make the window sma
vim.keymap.set("n", "+", [[<cmd>horizontal resize +2<cr>]]) -- make the window bigger horizontally by pressing shift and =
vim.keymap.set("n", "_", [[<cmd>horizontal resize -2<cr>]]) -- make the window smaller horizontally by pressing shift and -
-
+vim.keymap.set("n", "<leader>r", vim.lsp.buf.format)
diff --git a/lua/core/plugins.lua b/lua/core/plugins.lua
@@ -1,86 +1,109 @@
local ensure_packer = function()
- local fn = vim.fn
- local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim'
- if fn.empty(fn.glob(install_path)) > 0 then
- fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path})
- vim.cmd [[packadd packer.nvim]]
- return true
- end
- return false
+ local fn = vim.fn
+ local install_path = fn.stdpath('data') .. '/site/pack/packer/start/packer.nvim'
+ if fn.empty(fn.glob(install_path)) > 0 then
+ fn.system({ 'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path })
+ vim.cmd [[packadd packer.nvim]]
+ return true
+ end
+ return false
end
local packer_bootstrap = ensure_packer()
-- package manager
return require('packer').startup(function(use)
- use 'wbthomason/packer.nvim'
-
--- tex compile features
-use 'lervag/vimtex'
-
--- NOT NECESSARY WITH MARKVIEW (simplifies proper links)
--- wiki.vim navigation for notes
--- use 'lervag/wiki.vim'
-
--- autopairs of {[()]}
-use 'windwp/nvim-autopairs'
-local npairs = require('nvim-autopairs')
-npairs.setup({})
-
--- theme
-use { "catppuccin/nvim", as = "catppuccin" }
-
--- lsp
-use {
- 'VonHeikemen/lsp-zero.nvim',
- branch = 'v3.x',
- requires = {
- {'neovim/nvim-lspconfig'},
- {'hrsh7th/nvim-cmp'},
- {'hrsh7th/cmp-nvim-lsp'},
- {'L3MON4D3/LuaSnip'},
- }
-}
-use {
- "williamboman/mason.nvim",
- "williamboman/mason-lspconfig.nvim",
-}
-
-
--- fuzzy finding
-use {
- 'nvim-telescope/telescope.nvim', tag = '0.1.8',
--- or , branch = '0.1.x',
- requires = { {'nvim-lua/plenary.nvim'} }
-}
-
--- beautify markdown in vim
-use 'OXY2DEV/markview.nvim'
-
--- preview in browser
-use({ "iamcco/markdown-preview.nvim", run = "cd app && npm install", setup = function() vim.g.mkdp_filetypes = { "markdown" } end, ft = { "markdown" }, })
-
--- needed for icons for telescope
-use 'nvim-tree/nvim-web-devicons'
-
--- Tree sitter (syntax highlighting)
-use 'nvim-treesitter/nvim-treesitter'
-
-
--- status bar
-use {
- 'nvim-lualine/lualine.nvim',
- requires = { 'nvim-tree/nvim-web-devicons', opt = true }
-}
-
-require('lualine').setup {
- options = {
- theme = "catppuccin"
- -- ... the rest of your lualine config
- }
-}
-
-if packer_bootstrap then
- require('packer').sync()
-end
+ use 'wbthomason/packer.nvim'
+
+ -- tex compile features
+ use 'lervag/vimtex'
+
+ -- NOT NECESSARY WITH MARKVIEW (simplifies proper links)
+ -- wiki.vim navigation for notes
+ -- use 'lervag/wiki.vim'
+
+ -- autopairs of {[()]}
+ use 'windwp/nvim-autopairs'
+ local npairs = require('nvim-autopairs')
+ npairs.setup({})
+
+ -- theme
+ use { "catppuccin/nvim", as = "catppuccin" }
+
+ -- lsp
+ use {
+ 'VonHeikemen/lsp-zero.nvim',
+ branch = 'v3.x',
+ requires = {
+ { 'neovim/nvim-lspconfig' },
+ { 'hrsh7th/nvim-cmp' },
+ { 'hrsh7th/cmp-nvim-lsp' },
+ { 'L3MON4D3/LuaSnip' },
+ }
+ }
+ use {
+ "williamboman/mason.nvim",
+ "williamboman/mason-lspconfig.nvim",
+ }
+
+
+ -- fuzzy finding
+ use {
+ 'nvim-telescope/telescope.nvim', tag = '0.1.8',
+ -- or , branch = '0.1.x',
+ requires = { { 'nvim-lua/plenary.nvim' } }
+ }
+
+ -- beautify markdown in vim
+ use 'OXY2DEV/markview.nvim'
+
+ -- preview in browser
+ use({
+ "iamcco/markdown-preview.nvim",
+ run = "cd app && npm install",
+ setup = function()
+ vim.g.mkdp_filetypes = {
+ "markdown" }
+ end,
+ ft = { "markdown" },
+ })
+
+ -- needed for icons for telescope
+ use 'nvim-tree/nvim-web-devicons'
+
+ -- Tree sitter (syntax highlighting)
+ use 'nvim-treesitter/nvim-treesitter'
+
+ -- formatting
+
+ use 'jose-elias-alvarez/null-ls.nvim'
+ local null_ls = require("null-ls")
+
+ null_ls.setup({
+ sources = {
+ null_ls.builtins.formatting.stylua,
+ null_ls.builtins.diagnostics.eslint,
+ null_ls.builtins.completion.spell,
+ null_ls.builtins.formatting.csharpier
+ },
+ })
+
+ -- status bar
+ use {
+ 'nvim-lualine/lualine.nvim',
+ requires = { 'nvim-tree/nvim-web-devicons', opt = true }
+ }
+
+ require('lualine').setup {
+ options = {
+ theme = "catppuccin"
+ -- ... the rest of your lualine config
+ }
+ }
+
+
+
+ if packer_bootstrap then
+ require('packer').sync()
+ end
end)
diff --git a/plugin/packer_compiled.lua b/plugin/packer_compiled.lua
@@ -121,6 +121,11 @@ _G.packer_plugins = {
path = "/home/andrew/.local/share/nvim/site/pack/packer/start/mason.nvim",
url = "https://github.com/williamboman/mason.nvim"
},
+ ["null-ls.nvim"] = {
+ loaded = true,
+ path = "/home/andrew/.local/share/nvim/site/pack/packer/start/null-ls.nvim",
+ url = "https://github.com/jose-elias-alvarez/null-ls.nvim"
+ },
["nvim-autopairs"] = {
loaded = true,
path = "/home/andrew/.local/share/nvim/site/pack/packer/start/nvim-autopairs",