Compare commits

..

No commits in common. "09c261979711c06c8403fe01b2f75adb6d7f983e" and "46d8707e32d9480b7b08f8f6b2a80787140fcd5c" have entirely different histories.

4 changed files with 15 additions and 38 deletions

View file

@ -20,26 +20,12 @@ require("core.options")
options = { noremap = true } options = { noremap = true }
map('n', '<Leader>ff', ':Telescope find_files<Enter>', options) map('n', '<Leader>ff', ':Telescope find_files<Enter>', options)
map('n', '<Leader>fg', ':Telescope git_files<Enter>', options) map('n', '<Leader>fg', ':Telescope git_files<Enter>', options)
map('n', '<Leader>fc', ':Telescope git_commits<Enter>', options) map('n', '<Leader>gc', ':Telescope git_commits<Enter>', options)
map('n', '<Leader>fl', ':Telescope live_grep<Enter>', options)
map('n', '<Leader><Space>', ':Telescope buffers<Enter>', options) map('n', '<Leader><Space>', ':Telescope buffers<Enter>', options)
map('n', '<Leader>t', ':TagbarToggle<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) vim.g.grammalecte_cli_py = "~/Grammalecte-fr/grammalecte-cli.py"
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)
--------------------------------------------------
-- Telescope
--------------------------------------------------
require('telescope').setup{
defaults = {
prompt_prefix = "> ",
}
}
-------------------------------------------------- --------------------------------------------------
-- LSP -- LSP
@ -65,11 +51,11 @@ vim.api.nvim_create_autocmd('LspAttach', {
local opts = {buffer = event.buf} local opts = {buffer = event.buf}
vim.keymap.set('n', 'K', '<cmd>lua vim.lsp.buf.hover()<cr>', opts) 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', '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', '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', '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', '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', '<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) vim.keymap.set({'n', 'x'}, '<F3>', '<cmd>lua vim.lsp.buf.format({async = true})<cr>', opts)

View file

@ -4,7 +4,7 @@ return {
name = "catppuccin", name = "catppuccin",
priority = 1000, priority = 1000,
config = function() config = function()
vim.cmd.colorscheme "catppuccin-mocha" vim.cmd.colorscheme "catppuccin-macchiato"
end end
}, }
} }

View file

@ -1,6 +1,3 @@
return { return {
"dpelle/vim-Grammalecte", "dpelle/vim-Grammalecte",
config = function()
vim.g.grammalecte_cli_py = "~/Grammalecte-fr/grammalecte-cli.py"
end
} }

View file

@ -1,11 +1,5 @@
return { return {
{
'nvim-telescope/telescope.nvim', 'nvim-telescope/telescope.nvim',
tag = '0.1.8', tag = '0.1.8',
dependencies = { 'nvim-lua/plenary.nvim' }, dependencies = { 'nvim-lua/plenary.nvim' }
},
{
'nvim-telescope/telescope-fzf-native.nvim',
build = 'make'
},
} }