diff options
Diffstat (limited to '.config/nvim/lua')
| -rw-r--r-- | .config/nvim/lua/config/plugins/blink-cmp.lua | 16 | ||||
| -rw-r--r-- | .config/nvim/lua/config/plugins/jupytext.lua | 6 | ||||
| -rw-r--r-- | .config/nvim/lua/config/plugins/learn.lua | 12 | ||||
| -rw-r--r-- | .config/nvim/lua/config/plugins/lsp.lua | 46 | ||||
| -rw-r--r-- | .config/nvim/lua/config/plugins/neotree.lua | 17 | ||||
| -rw-r--r-- | .config/nvim/lua/config/plugins/notebook.lua | 14 | ||||
| -rw-r--r-- | .config/nvim/lua/config/plugins/uv.lua | 7 | ||||
| -rw-r--r-- | .config/nvim/lua/mappings.lua | 3 |
8 files changed, 78 insertions, 43 deletions
diff --git a/.config/nvim/lua/config/plugins/blink-cmp.lua b/.config/nvim/lua/config/plugins/blink-cmp.lua index d51ba4a..424d463 100644 --- a/.config/nvim/lua/config/plugins/blink-cmp.lua +++ b/.config/nvim/lua/config/plugins/blink-cmp.lua @@ -68,14 +68,14 @@ return { name = "Emoji", score_offset = 15, -- Tune by preference opts = { insert = true }, -- Insert emoji (default) or complete its name - should_show_items = function() - return vim.tbl_contains( - -- Enable emoji completion only for git commits and markdown. - -- By default, enabled for all file-types. - { "gitcommit", "markdown" }, - vim.o.filetype - ) - end, + -- should_show_items = function() + -- return vim.tbl_contains( + -- -- Enable emoji completion only for git commits and markdown. + -- -- By default, enabled for all file-types. + -- { "gitcommit", "markdown" }, + -- vim.o.filetype + -- ) + -- end, }, sql = { -- IMPORTANT: use the same name as you would for nvim-cmp diff --git a/.config/nvim/lua/config/plugins/jupytext.lua b/.config/nvim/lua/config/plugins/jupytext.lua new file mode 100644 index 0000000..2f57193 --- /dev/null +++ b/.config/nvim/lua/config/plugins/jupytext.lua @@ -0,0 +1,6 @@ +return { + "GCBallesteros/jupytext.nvim", + config = true, + -- Depending on your nvim distro or config you may need to make the loading not lazy + -- lazy=false, +} diff --git a/.config/nvim/lua/config/plugins/learn.lua b/.config/nvim/lua/config/plugins/learn.lua index ebaf057..2d82d9f 100644 --- a/.config/nvim/lua/config/plugins/learn.lua +++ b/.config/nvim/lua/config/plugins/learn.lua @@ -1,8 +1,8 @@ return { - { - "m4xshen/hardtime.nvim", - lazy = false, - dependencies = { "MunifTanjim/nui.nvim" }, - opts = {}, - }, + -- { + -- "m4xshen/hardtime.nvim", + -- lazy = false, + -- dependencies = { "MunifTanjim/nui.nvim" }, + -- opts = {}, + -- }, } diff --git a/.config/nvim/lua/config/plugins/lsp.lua b/.config/nvim/lua/config/plugins/lsp.lua index dca3f5f..4d4dcc0 100644 --- a/.config/nvim/lua/config/plugins/lsp.lua +++ b/.config/nvim/lua/config/plugins/lsp.lua @@ -167,35 +167,25 @@ return { local servers = { bashls = {}, marksman = {}, - -- clangd = {}, - -- gopls = {}, - -- pyright = {}, - -- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs - -- - -- Some languages (like typescript) have entire language plugins that can be useful: - -- https://github.com/pmizio/typescript-tools.nvim - -- - -- But for many setups, the LSP (`ts_ls`) will work just fine - -- ts_ls = {}, - -- - - lua_ls = { - -- cmd = { ... }, - -- filetypes = { ... }, - -- capabilities = {}, - -- settings = { - -- Lua = { - -- completion = { - -- callSnippet = 'Replace', - -- }, - -- -- You can toggle below to ignore Lua_LS's noisy `missing-fields` warnings - -- -- diagnostics = { disable = { 'missing-fields' } }, - -- }, - -- }, + pyright = { + settings = { + python = { + analysis = { + typeCheckingMode = "basic", + autoSearchPaths = true, + useLibraryCodeForTypes = true, + }, + }, + }, }, - } - - -- Ensure the servers and tools above are installed + clangd = { + cmd = { + "clangd", + "--fallback-style={BasedOnStyle: LLVM, IndentWidth: 4, TabWidth: 4, UseTab: Never}", + }, + }, + lua_ls = {}, + } -- Ensure the servers and tools above are installed -- -- To check the current status of installed tools and/or manually install -- other tools, you can run diff --git a/.config/nvim/lua/config/plugins/neotree.lua b/.config/nvim/lua/config/plugins/neotree.lua new file mode 100644 index 0000000..11a0a98 --- /dev/null +++ b/.config/nvim/lua/config/plugins/neotree.lua @@ -0,0 +1,17 @@ +return { + { + "nvim-neo-tree/neo-tree.nvim", + branch = "v3.x", + dependencies = { + "nvim-lua/plenary.nvim", + "MunifTanjim/nui.nvim", + "nvim-tree/nvim-web-devicons", -- optional, but recommended + }, + lazy = false, -- neo-tree will lazily load itself + opts = { + window = { + position = "right", + }, + }, + }, +} diff --git a/.config/nvim/lua/config/plugins/notebook.lua b/.config/nvim/lua/config/plugins/notebook.lua new file mode 100644 index 0000000..f3eff87 --- /dev/null +++ b/.config/nvim/lua/config/plugins/notebook.lua @@ -0,0 +1,14 @@ +return { + { + "jeryldev/pyworks.nvim", + dependencies = { + "benlubas/molten-nvim", + "3rd/image.nvim", + }, + config = function() + require("pyworks").setup() -- See Configuration section for options + end, + lazy = false, + priority = 100, + }, +} diff --git a/.config/nvim/lua/config/plugins/uv.lua b/.config/nvim/lua/config/plugins/uv.lua new file mode 100644 index 0000000..121921b --- /dev/null +++ b/.config/nvim/lua/config/plugins/uv.lua @@ -0,0 +1,7 @@ +return { + "benomahony/uv.nvim", + event = "VeryLazy", + opts = { + picker_integration = true, + }, +} diff --git a/.config/nvim/lua/mappings.lua b/.config/nvim/lua/mappings.lua index 5c2a498..25b566a 100644 --- a/.config/nvim/lua/mappings.lua +++ b/.config/nvim/lua/mappings.lua @@ -10,7 +10,7 @@ vim.keymap.set("x", "c", '"_c') local fzf = require("fzf-lua") -k.add({ +wk.add({ { mode = { "n" }, { "<C-d>", "<C-d>zz", desc = "Move down in buffer with cursor centered" }, @@ -25,6 +25,7 @@ k.add({ { "<C-j>", "<C-w><C-j>", hidden = true }, -- Move to lower window { "<C-k>", "<C-w><C-k>", hidden = true }, -- Move to upper window { "<C-q>", "<C-w><C-q>", hidden = true }, -- Close window + { "<leader>l", "<cmd>Neotree toggle<CR>", desc = "Neotree toggle" }, { "<leader><leader>", function() |
