Small fixes
This commit is contained in:
parent
30b6a57ee4
commit
9e391ff431
2 changed files with 29 additions and 12 deletions
11
init.lua
11
init.lua
|
@ -1,7 +1,7 @@
|
|||
local packer = require("ensure-packer");
|
||||
local plugins = require("plugins");
|
||||
local settings = require("settings");
|
||||
--local telescope = require("telescope");
|
||||
local telescope = require("telescope");
|
||||
|
||||
-- Theme Section
|
||||
vim.cmd("colorscheme onedark")
|
||||
|
@ -16,11 +16,16 @@ require('Comment').setup()
|
|||
|
||||
-- Gitsigns
|
||||
require('gitsigns').setup()
|
||||
--require('telescope').setup()
|
||||
--require('telescope').setup {}
|
||||
|
||||
-- Mason
|
||||
-- require("mason").setup()
|
||||
-- require("mason-lspconfig").setup({
|
||||
-- ensure_installed = { "rust_analyzer", "pylsp" },
|
||||
-- automatic_installation = true,
|
||||
-- })
|
||||
|
||||
local builtin = require('telescope.builtin')
|
||||
vim.keymap.set('n', '<leader>ff', builtin.find_files, {})
|
||||
vim.keymap.set('n', '<leader>fg', builtin.live_grep, {})
|
||||
vim.keymap.set('n', '<leader>fb', builtin.buffers, {})
|
||||
vim.keymap.set('n', '<leader>fh', builtin.help_tags, {})
|
||||
|
|
|
@ -11,6 +11,18 @@ require('packer').startup(function(use)
|
|||
opt = true
|
||||
}
|
||||
}
|
||||
use {
|
||||
'nvim-telescope/telescope.nvim',
|
||||
tag = '0.1.0',
|
||||
-- or , branch = '0.1.x',
|
||||
requires = {{'nvim-lua/plenary.nvim'}}
|
||||
}
|
||||
use {
|
||||
"folke/which-key.nvim",
|
||||
config = function()
|
||||
require("which-key").setup()
|
||||
end
|
||||
}
|
||||
-- use {
|
||||
-- 'VonHeikemen/lsp-zero.nvim',
|
||||
-- requires = {
|
||||
|
@ -34,15 +46,15 @@ require('packer').startup(function(use)
|
|||
-- }
|
||||
-- use 'neovim/lsp'
|
||||
-- use 'neovim/nvim-lspconfig'
|
||||
-- use {
|
||||
-- 'nvim-treesitter/nvim-treesitter',
|
||||
-- run = function()
|
||||
-- local ts_update = require('nvim-treesitter.install').update({
|
||||
-- with_sync = true
|
||||
-- })
|
||||
-- ts_update()
|
||||
-- end
|
||||
-- }
|
||||
use {
|
||||
'nvim-treesitter/nvim-treesitter',
|
||||
run = function()
|
||||
local ts_update = require('nvim-treesitter.install').update({
|
||||
with_sync = true
|
||||
})
|
||||
ts_update()
|
||||
end
|
||||
}
|
||||
-- use 'williamboman/mason.nvim'
|
||||
-- use 'williamboman/mason-lspconfig.nvim'
|
||||
-- use 'hrsh7th/nvim-cmp'
|
||||
|
|
Loading…
Reference in a new issue