updating all of my config, specifically doing this to fix the nvim configurations
This commit is contained in:
44
nvim/lua/plugins.lua
Normal file
44
nvim/lua/plugins.lua
Normal file
@@ -0,0 +1,44 @@
|
||||
-- treesitter
|
||||
require'nvim-treesitter.configs'.setup{
|
||||
highlight = {
|
||||
enable = true,
|
||||
},
|
||||
indent = {
|
||||
enable = true,
|
||||
}
|
||||
}
|
||||
|
||||
-- telescope
|
||||
local builtin = require('telescope.builtin')
|
||||
|
||||
-- lualine
|
||||
require('lualine').setup()
|
||||
|
||||
|
||||
-- comment
|
||||
require('Comment').setup()
|
||||
|
||||
|
||||
-- autopairs
|
||||
require('nvim-autopairs').setup()
|
||||
|
||||
|
||||
-- cmp
|
||||
local cmp = require'cmp'
|
||||
cmp.setup({
|
||||
snippet = {
|
||||
expand = function(args)
|
||||
require('luasnip').lsp_expand(args.body)
|
||||
end
|
||||
}
|
||||
})
|
||||
cmp.setup.cmdline(':', {
|
||||
mapping = cmp.mapping.preset.cmdline(),
|
||||
sources = cmp.config.sources({
|
||||
{ name = 'path' }
|
||||
}, {
|
||||
{ name = 'cmdline' }
|
||||
}),
|
||||
matching = { disallow_symbol_nonprefix_matching = false }
|
||||
})
|
||||
-- TODO complete https://github.com/hrsh7th/nvim-cmp
|
||||
Reference in New Issue
Block a user