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

View File

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