Modernizied instatiation thingy
This commit is contained in:
parent
6f55a66333
commit
daa989d24a
4 changed files with 11 additions and 11 deletions
|
|
@ -2,7 +2,7 @@ return { 'ej-shafran/compile-mode.nvim',
|
||||||
version = '^5.13.0',
|
version = '^5.13.0',
|
||||||
dependencies = {
|
dependencies = {
|
||||||
'nvim-lua/plenary.nvim', lazy = true,
|
'nvim-lua/plenary.nvim', lazy = true,
|
||||||
'm00qek/baleia.nvim',
|
'm00qek/baleia.nvim'
|
||||||
},
|
},
|
||||||
config = function()
|
config = function()
|
||||||
---@type CompileModeOpts
|
---@type CompileModeOpts
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@ return {
|
||||||
dependencies = {
|
dependencies = {
|
||||||
'neovim/nvim-lspconfig',
|
'neovim/nvim-lspconfig',
|
||||||
'hrsh7th/cmp-nvim-lsp',
|
'hrsh7th/cmp-nvim-lsp',
|
||||||
|
'petertriho/cmp-git',
|
||||||
'hrsh7th/cmp-buffer',
|
'hrsh7th/cmp-buffer',
|
||||||
'hrsh7th/cmp-path',
|
'hrsh7th/cmp-path',
|
||||||
'hrsh7th/cmp-cmdline',
|
'hrsh7th/cmp-cmdline',
|
||||||
|
|
@ -48,7 +49,7 @@ return {
|
||||||
-- Set configuration for specific filetype.
|
-- Set configuration for specific filetype.
|
||||||
cmp.setup.filetype('gitcommit', {
|
cmp.setup.filetype('gitcommit', {
|
||||||
sources = cmp.config.sources({
|
sources = cmp.config.sources({
|
||||||
{ name = 'git' }, -- You can specify the `git` source if [you were installed it](https://github.com/petertriho/cmp-git).
|
{ name = 'git' },
|
||||||
}, {
|
}, {
|
||||||
{ name = 'buffer' },
|
{ name = 'buffer' },
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
return { "nvim-treesitter/nvim-treesitter",
|
return {
|
||||||
|
"nvim-treesitter/nvim-treesitter",
|
||||||
build = ":TSUpdate",
|
build = ":TSUpdate",
|
||||||
config = function()
|
main = 'nvim-treesitter.configs',
|
||||||
require("nvim-treesitter.configs").setup {
|
opts = {
|
||||||
ensure_installed = { 'c', 'cpp', 'lua' },
|
ensure_installed = { 'c', 'cpp', 'lua' },
|
||||||
highlight = { enable = true, }
|
highlight = { enable = true, }
|
||||||
}
|
}
|
||||||
end
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
return {
|
return {
|
||||||
'nvim-telescope/telescope.nvim', tag = '0.1.8',
|
'nvim-telescope/telescope.nvim', tag = '0.1.8',
|
||||||
dependencies = { 'nvim-lua/plenary.nvim', lazy = true,
|
dependencies = { 'nvim-lua/plenary.nvim', lazy = true, 'nvim-tree/nvim-web-devicons',
|
||||||
{
|
{
|
||||||
'nvim-telescope/telescope-fzf-native.nvim',
|
'nvim-telescope/telescope-fzf-native.nvim',
|
||||||
build = (build_cmd ~= 'cmake') and 'make'
|
build = (build_cmd ~= 'cmake') and 'make'
|
||||||
|
|
@ -25,7 +25,6 @@ return {
|
||||||
}
|
}
|
||||||
telescope.load_extension('fzf')
|
telescope.load_extension('fzf')
|
||||||
|
|
||||||
-- TODO: use keys = { }
|
|
||||||
local builtin = require('telescope.builtin')
|
local builtin = require('telescope.builtin')
|
||||||
vim.keymap.set('n', '<C-p>', builtin.find_files, {})
|
vim.keymap.set('n', '<C-p>', builtin.find_files, {})
|
||||||
vim.keymap.set('n', '<leader>ft', builtin.treesitter, {})
|
vim.keymap.set('n', '<leader>ft', builtin.treesitter, {})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue