From bb1721e7abc1043e5afe3d481ad68bdad97601cb Mon Sep 17 00:00:00 2001 From: Yaser Alraddadi Date: Sun, 30 Jun 2024 10:49:15 +0300 Subject: [PATCH] update --- init.lua | 38 ++++++++++++++++++++++++++++-------- lua/custom/plugins/noice.lua | 30 ++++++++++++++-------------- 2 files changed, 45 insertions(+), 23 deletions(-) diff --git a/init.lua b/init.lua index a023e9c6..30876888 100644 --- a/init.lua +++ b/init.lua @@ -241,6 +241,9 @@ vim.keymap.set({ 'n' }, '[b', 'bprev', { silent = true }) -- vim.keymap.set({ 'n', 'i', 'v' }, '', 'bnext', { silent = true }) -- vim.keymap.set({ 'n', 'i', 'v' }, '', 'bprev', { 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 - [''] = cmp.mapping.select_next_item(), + -- [''] = cmp.mapping.select_next_item(), -- Select the [p]revious item - [''] = cmp.mapping.select_prev_item(), + -- [''] = cmp.mapping.select_prev_item(), -- Scroll the documentation window [b]ack / [f]orward [''] = 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. - [''] = cmp.mapping.confirm { select = true }, + -- [''] = cmp.mapping.confirm { select = true }, -- If you prefer more traditional completion keymaps, -- you can uncomment the following lines - --[''] = cmp.mapping.confirm { select = true }, + [''] = cmp.mapping.confirm { select = true }, --[''] = cmp.mapping.select_next_item(), --[''] = cmp.mapping.select_prev_item(), diff --git a/lua/custom/plugins/noice.lua b/lua/custom/plugins/noice.lua index 6278aba9..ef6e66fe 100644 --- a/lua/custom/plugins/noice.lua +++ b/lua/custom/plugins/noice.lua @@ -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', + -- }, + -- }, }