Compare commits
No commits in common. "09c261979711c06c8403fe01b2f75adb6d7f983e" and "46d8707e32d9480b7b08f8f6b2a80787140fcd5c" have entirely different histories.
09c2619797
...
46d8707e32
4 changed files with 15 additions and 38 deletions
|
@ -20,26 +20,12 @@ require("core.options")
|
|||
options = { noremap = true }
|
||||
map('n', '<Leader>ff', ':Telescope find_files<Enter>', options)
|
||||
map('n', '<Leader>fg', ':Telescope git_files<Enter>', options)
|
||||
map('n', '<Leader>fc', ':Telescope git_commits<Enter>', options)
|
||||
map('n', '<Leader>fl', ':Telescope live_grep<Enter>', options)
|
||||
map('n', '<Leader>gc', ':Telescope git_commits<Enter>', options)
|
||||
map('n', '<Leader><Space>', ':Telescope buffers<Enter>', options)
|
||||
map('n', '<Leader>t', ':TagbarToggle<Enter>', options)
|
||||
map('n', '<Leader>nv', ':Telescope find_files cwd=~/.config/nvim<Enter>', options)
|
||||
map('n', '<Leader>nc', ':Telescope find_files cwd=~/.config<Enter>', options)
|
||||
|
||||
map('n', '<Leader>gd', ':Telescope lsp_definitions<Enter>', options)
|
||||
map('n', '<Leader>gr', ':Telescope lsp_references<Enter>', options)
|
||||
map('n', '<Leader>gs', ':Telescope lsp_workspace_symbols<Enter>', options)
|
||||
map('n', '<Leader>gS', ':Telescope lsp_dynamic_workspace_symbols<Enter>', options)
|
||||
vim.g.grammalecte_cli_py = "~/Grammalecte-fr/grammalecte-cli.py"
|
||||
|
||||
--------------------------------------------------
|
||||
-- Telescope
|
||||
--------------------------------------------------
|
||||
require('telescope').setup{
|
||||
defaults = {
|
||||
prompt_prefix = "> ",
|
||||
}
|
||||
}
|
||||
|
||||
--------------------------------------------------
|
||||
-- LSP
|
||||
|
@ -65,11 +51,11 @@ vim.api.nvim_create_autocmd('LspAttach', {
|
|||
local opts = {buffer = event.buf}
|
||||
|
||||
vim.keymap.set('n', 'K', '<cmd>lua vim.lsp.buf.hover()<cr>', opts)
|
||||
--vim.keymap.set('n', 'gd', '<cmd>lua vim.lsp.buf.definition()<cr>', opts)
|
||||
vim.keymap.set('n', 'gd', '<cmd>lua vim.lsp.buf.definition()<cr>', opts)
|
||||
vim.keymap.set('n', 'gD', '<cmd>lua vim.lsp.buf.declaration()<cr>', opts)
|
||||
vim.keymap.set('n', 'gi', '<cmd>lua vim.lsp.buf.implementation()<cr>', opts)
|
||||
vim.keymap.set('n', 'go', '<cmd>lua vim.lsp.buf.type_definition()<cr>', opts)
|
||||
--vim.keymap.set('n', 'gr', '<cmd>lua vim.lsp.buf.references()<cr>', opts)
|
||||
vim.keymap.set('n', 'gr', '<cmd>lua vim.lsp.buf.references()<cr>', opts)
|
||||
vim.keymap.set('n', 'gs', '<cmd>lua vim.lsp.buf.signature_help()<cr>', opts)
|
||||
vim.keymap.set('n', '<F2>', '<cmd>lua vim.lsp.buf.rename()<cr>', opts)
|
||||
vim.keymap.set({'n', 'x'}, '<F3>', '<cmd>lua vim.lsp.buf.format({async = true})<cr>', opts)
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
return {
|
||||
{
|
||||
"catppuccin/nvim",
|
||||
name = "catppuccin",
|
||||
priority = 1000,
|
||||
config = function()
|
||||
vim.cmd.colorscheme "catppuccin-mocha"
|
||||
end
|
||||
},
|
||||
{
|
||||
"catppuccin/nvim",
|
||||
name = "catppuccin",
|
||||
priority = 1000,
|
||||
config = function()
|
||||
vim.cmd.colorscheme "catppuccin-macchiato"
|
||||
end
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,6 +1,3 @@
|
|||
return {
|
||||
"dpelle/vim-Grammalecte",
|
||||
config = function()
|
||||
vim.g.grammalecte_cli_py = "~/Grammalecte-fr/grammalecte-cli.py"
|
||||
end
|
||||
}
|
||||
|
|
|
@ -1,11 +1,5 @@
|
|||
return {
|
||||
{
|
||||
'nvim-telescope/telescope.nvim',
|
||||
tag = '0.1.8',
|
||||
dependencies = { 'nvim-lua/plenary.nvim' },
|
||||
},
|
||||
{
|
||||
'nvim-telescope/telescope-fzf-native.nvim',
|
||||
build = 'make'
|
||||
},
|
||||
'nvim-telescope/telescope.nvim',
|
||||
tag = '0.1.8',
|
||||
dependencies = { 'nvim-lua/plenary.nvim' }
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue