Small fixes

This commit is contained in:
Imbus 2022-12-15 22:13:03 +01:00
parent 30b6a57ee4
commit 9e391ff431
2 changed files with 29 additions and 12 deletions

View file

@ -1,7 +1,7 @@
local packer = require("ensure-packer"); local packer = require("ensure-packer");
local plugins = require("plugins"); local plugins = require("plugins");
local settings = require("settings"); local settings = require("settings");
--local telescope = require("telescope"); local telescope = require("telescope");
-- Theme Section -- Theme Section
vim.cmd("colorscheme onedark") vim.cmd("colorscheme onedark")
@ -16,11 +16,16 @@ require('Comment').setup()
-- Gitsigns -- Gitsigns
require('gitsigns').setup() require('gitsigns').setup()
--require('telescope').setup()
--require('telescope').setup {}
-- Mason -- Mason
-- require("mason").setup() -- require("mason").setup()
-- require("mason-lspconfig").setup({ -- require("mason-lspconfig").setup({
-- ensure_installed = { "rust_analyzer", "pylsp" }, -- ensure_installed = { "rust_analyzer", "pylsp" },
-- automatic_installation = true, -- 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, {})

View file

@ -11,6 +11,18 @@ require('packer').startup(function(use)
opt = true 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 { -- use {
-- 'VonHeikemen/lsp-zero.nvim', -- 'VonHeikemen/lsp-zero.nvim',
-- requires = { -- requires = {
@ -34,15 +46,15 @@ require('packer').startup(function(use)
-- } -- }
-- use 'neovim/lsp' -- use 'neovim/lsp'
-- use 'neovim/nvim-lspconfig' -- use 'neovim/nvim-lspconfig'
-- use { use {
-- 'nvim-treesitter/nvim-treesitter', 'nvim-treesitter/nvim-treesitter',
-- run = function() run = function()
-- local ts_update = require('nvim-treesitter.install').update({ local ts_update = require('nvim-treesitter.install').update({
-- with_sync = true with_sync = true
-- }) })
-- ts_update() ts_update()
-- end end
-- } }
-- use 'williamboman/mason.nvim' -- use 'williamboman/mason.nvim'
-- use 'williamboman/mason-lspconfig.nvim' -- use 'williamboman/mason-lspconfig.nvim'
-- use 'hrsh7th/nvim-cmp' -- use 'hrsh7th/nvim-cmp'