This commit is contained in:
Yaser Alraddadi 2024-06-30 10:49:15 +03:00
parent 7634fcd43a
commit bb1721e7ab
No known key found for this signature in database
GPG Key ID: 808212144E6DBE90
2 changed files with 45 additions and 23 deletions

View File

@ -241,6 +241,9 @@ vim.keymap.set({ 'n' }, '[b', '<cmd>bprev<CR>', { silent = true })
-- vim.keymap.set({ 'n', 'i', 'v' }, '<C-h>', '<cmd>bnext<CR>', { silent = true })
-- vim.keymap.set({ 'n', 'i', 'v' }, '<C-l>', '<cmd>bprev<CR>', { silent = true })
-- Enable number in netrw
vim.g.netrw_bufsettings = 'noma nomod nu rnu nobl nowrap ro'
-- [[ Basic Autocommands ]]
-- See `:help lua-guide-autocommands`
@ -671,14 +674,33 @@ require('lazy').setup({
on_attach = on_attach_ruff,
-- cmd_env = { RUFF_TRACE = 'messages' },
},
-- https://microsoft.github.io/pyright/#/settings
pyright = {
-- pyright = {
-- settings = {
-- pyright = {
-- -- Using Ruff's import organizer
-- disableOrganizeImports = true,
-- },
-- python = {
-- analysis = {
-- -- Ignore all files for analysis to exclusively use Ruff for linting
-- -- ignore = { '*' },
-- autoSearchPaths = true,
-- diagnosticMode = 'openFilesOnly',
-- useLibraryCodeForTypes = true,
-- -- typeCheckingMode = 'strict',
-- },
-- },
-- },
-- },
-- https://docs.basedpyright.com/#/settings
basedpyright = {
settings = {
pyright = {
basedpyright = {
-- Using Ruff's import organizer
disableOrganizeImports = true,
},
python = {
analysis = {
-- Ignore all files for analysis to exclusively use Ruff for linting
-- ignore = { '*' },
@ -842,9 +864,9 @@ require('lazy').setup({
-- No, but seriously. Please read `:help ins-completion`, it is really good!
mapping = cmp.mapping.preset.insert {
-- Select the [n]ext item
['<C-n>'] = cmp.mapping.select_next_item(),
-- ['<C-n>'] = cmp.mapping.select_next_item(),
-- Select the [p]revious item
['<C-p>'] = cmp.mapping.select_prev_item(),
-- ['<C-p>'] = cmp.mapping.select_prev_item(),
-- Scroll the documentation window [b]ack / [f]orward
['<C-b>'] = cmp.mapping.scroll_docs(-4),
@ -853,11 +875,11 @@ require('lazy').setup({
-- Accept ([y]es) the completion.
-- This will auto-import if your LSP supports it.
-- This will expand snippets if the LSP sent a snippet.
['<C-y>'] = cmp.mapping.confirm { select = true },
-- ['<C-y>'] = cmp.mapping.confirm { select = true },
-- If you prefer more traditional completion keymaps,
-- you can uncomment the following lines
--['<CR>'] = cmp.mapping.confirm { select = true },
['<CR>'] = cmp.mapping.confirm { select = true },
--['<Tab>'] = cmp.mapping.select_next_item(),
--['<S-Tab>'] = cmp.mapping.select_prev_item(),

View File

@ -1,17 +1,17 @@
return {
{
'folke/noice.nvim',
event = 'VeryLazy',
opts = {
-- add any options here
},
dependencies = {
-- if you lazy-load any plugin below, make sure to add proper `module="..."` entries
'MunifTanjim/nui.nvim',
-- OPTIONAL:
-- `nvim-notify` is only needed, if you want to use the notification view.
-- If not available, we use `mini` as the fallback
'rcarriga/nvim-notify',
},
},
-- {
-- 'folke/noice.nvim',
-- event = 'VeryLazy',
-- opts = {
-- -- add any options here
-- },
-- dependencies = {
-- -- if you lazy-load any plugin below, make sure to add proper `module="..."` entries
-- 'MunifTanjim/nui.nvim',
-- -- OPTIONAL:
-- -- `nvim-notify` is only needed, if you want to use the notification view.
-- -- If not available, we use `mini` as the fallback
-- 'rcarriga/nvim-notify',
-- },
-- },
}