Added status line and additional code cleanup

This commit is contained in:
Luke Else 2023-05-18 13:19:38 +01:00
parent 3252348954
commit ee9d362477
3 changed files with 13 additions and 6 deletions

View File

@ -1,3 +1,3 @@
local inlay = require("inlay-hints").setup({ local inlay = require('inlay-hints').setup({
only_current_line = true, only_current_line = true,
}) })

View File

@ -0,0 +1 @@
require('lualine').setup()

View File

@ -20,6 +20,12 @@ return require('packer').startup(function(use)
end end
} }
-- Status Bar
use {
'nvim-lualine/lualine.nvim',
requires = { 'nvim-tree/nvim-web-devicons', opt = true }
}
-- Ease of use Plugins -- Ease of use Plugins
use('nvim-treesitter/nvim-treesitter', {run = ':TSUpdate'}) use('nvim-treesitter/nvim-treesitter', {run = ':TSUpdate'})
use('theprimeagen/harpoon') use('theprimeagen/harpoon')
@ -27,13 +33,13 @@ return require('packer').startup(function(use)
use('tpope/vim-fugitive') use('tpope/vim-fugitive')
use("numToStr/FTerm.nvim") use("numToStr/FTerm.nvim")
use('simrat39/inlay-hints.nvim') use('simrat39/inlay-hints.nvim')
-- Bracket Autocompletion -- Bracket Autocompletion
use { use {
'windwp/nvim-autopairs', 'windwp/nvim-autopairs',
config = function() require('nvim-autopairs').setup {} end config = function() require('nvim-autopairs').setup {} end
} }
-- LSP -- LSP
use { use {
'VonHeikemen/lsp-zero.nvim', 'VonHeikemen/lsp-zero.nvim',
@ -43,7 +49,7 @@ return require('packer').startup(function(use)
{'neovim/nvim-lspconfig'}, {'neovim/nvim-lspconfig'},
{'williamboman/mason.nvim'}, {'williamboman/mason.nvim'},
{'williamboman/mason-lspconfig.nvim'}, {'williamboman/mason-lspconfig.nvim'},
-- Autocompletion -- Autocompletion
{'hrsh7th/nvim-cmp'}, {'hrsh7th/nvim-cmp'},
{'hrsh7th/cmp-buffer'}, {'hrsh7th/cmp-buffer'},
@ -51,13 +57,13 @@ return require('packer').startup(function(use)
{'saadparwaiz1/cmp_luasnip'}, {'saadparwaiz1/cmp_luasnip'},
{'hrsh7th/cmp-nvim-lsp'}, {'hrsh7th/cmp-nvim-lsp'},
{'hrsh7th/cmp-nvim-lua'}, {'hrsh7th/cmp-nvim-lua'},
-- Snippets -- Snippets
{'L3MON4D3/LuaSnip'}, {'L3MON4D3/LuaSnip'},
{'rafamadriz/friendly-snippets'}, {'rafamadriz/friendly-snippets'},
} }
} }
-- Debugger -- Debugger
use 'nvim-lua/plenary.nvim' use 'nvim-lua/plenary.nvim'
use { 'rcarriga/nvim-dap-ui', requires = {'mfussenegger/nvim-dap'} } use { 'rcarriga/nvim-dap-ui', requires = {'mfussenegger/nvim-dap'} }