diff --git a/neovim/kickstart/lazy-lock.json b/neovim/kickstart/lazy-lock.json deleted file mode 100644 index bb8b7e8..0000000 --- a/neovim/kickstart/lazy-lock.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "Comment.nvim": { "branch": "master", "commit": "0236521ea582747b58869cb72f70ccfa967d2e89" }, - "LuaSnip": { "branch": "master", "commit": "82108e7e31cc6fc223cc5df5cae6d89f70bb199f" }, - "catppuccin": { "branch": "main", "commit": "5e36ca599f4aa41bdd87fbf2c5aae4397ac55074" }, - "cmp-nvim-lsp": { "branch": "main", "commit": "5af77f54de1b16c34b23cba810150689a3a90312" }, - "cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" }, - "fidget.nvim": { "branch": "main", "commit": "0ba1e16d07627532b6cae915cc992ecac249fb97" }, - "friendly-snippets": { "branch": "main", "commit": "69a2c1675b66e002799f5eef803b87a12f593049" }, - "gitsigns.nvim": { "branch": "main", "commit": "4aaacbf5e5e2218fd05eb75703fe9e0f85335803" }, - "indent-blankline.nvim": { "branch": "master", "commit": "12e92044d313c54c438bd786d11684c88f6f78cd" }, - "lazy.nvim": { "branch": "main", "commit": "96584866b9c5e998cbae300594d0ccfd0c464627" }, - "lualine.nvim": { "branch": "master", "commit": "566b7036f717f3d676362742630518a47f132fff" }, - "mason-lspconfig.nvim": { "branch": "main", "commit": "3ba1b92b771f33256b4969d696b82c8ae7075364" }, - "mason.nvim": { "branch": "main", "commit": "e110bc3be1a7309617cecd77bfe4bf86ba1b8134" }, - "neodev.nvim": { "branch": "main", "commit": "59a79458fbae5fff0e21fe2ed261770a70c9e171" }, - "nvim-cmp": { "branch": "main", "commit": "538e37ba87284942c1d76ed38dd497e54e65b891" }, - "nvim-lspconfig": { "branch": "master", "commit": "7eed8b2150192e5ad05e1886fdf133493ddf2928" }, - "nvim-treesitter": { "branch": "master", "commit": "59d4c14a1a4262cf637ff2420032593afa062749" }, - "nvim-treesitter-textobjects": { "branch": "master", "commit": "19a91a38b02c1c28c14e0ba468d20ae1423c39b2" }, - "plenary.nvim": { "branch": "master", "commit": "55d9fe89e33efd26f532ef20223e5f9430c8b0c0" }, - "telescope-fzf-native.nvim": { "branch": "main", "commit": "6c921ca12321edaa773e324ef64ea301a1d0da62" }, - "telescope.nvim": { "branch": "0.1.x", "commit": "d90956833d7c27e73c621a61f20b29fdb7122709" }, - "vim-fugitive": { "branch": "master", "commit": "59659093581aad2afacedc81f009ed6a4bfad275" }, - "vim-rhubarb": { "branch": "master", "commit": "ee69335de176d9325267b0fd2597a22901d927b1" }, - "vim-sleuth": { "branch": "master", "commit": "1cc4557420f215d02c4d2645a748a816c220e99b" }, - "which-key.nvim": { "branch": "main", "commit": "4433e5ec9a507e5097571ed55c02ea9658fb268a" } -} \ No newline at end of file diff --git a/neovim/kickstart/lua/custom/plugins/flutter-tools.lua b/neovim/kickstart/lua/custom/plugins/flutter-tools.lua new file mode 100644 index 0000000..b51fa02 --- /dev/null +++ b/neovim/kickstart/lua/custom/plugins/flutter-tools.lua @@ -0,0 +1,95 @@ +return { + 'akinsho/flutter-tools.nvim', + lazy = false, + dependencies = { + 'nvim-lua/plenary.nvim', + 'stevearc/dressing.nvim', -- optional for vim.ui.select + }, + config = function() + local flutterConfig = require("flutter-tools") + + flutterConfig.setup { + ui = { + border = "rounded", + notification_style = 'native' + }, + decorations = { + statusline = { + -- set to true to be able use the 'flutter_tools_decorations.app_version' in your statusline + -- this will show the current version of the flutter app from the pubspec.yaml file + app_version = true, + -- set to true to be able use the 'flutter_tools_decorations.device' in your statusline + -- this will show the currently running device if an application was started with a specific + -- device + device = true, + -- set to true to be able use the 'flutter_tools_decorations.project_config' in your statusline + -- this will show the currently selected project configuration + project_config = true, + } + }, + debugger = { -- integrate with nvim dap + install dart code debugger + enabled = false, + run_via_dap = false, -- use dap instead of a plenary job to run flutter apps + -- if empty dap will not stop on any exceptions, otherwise it will stop on those specified + -- see |:help dap.set_exception_breakpoints()| for more info + exception_breakpoints = {} + }, + root_patterns = { ".git", "pubspec.yaml" }, -- patterns to find the root of your flutter project + fvm = true, -- takes priority over path, uses /.fvm/flutter_sdk if enabled + widget_guides = { + enabled = false, + }, + closing_tags = { + highlight = "Comment", -- highlight for the closing tag + prefix = "//", -- character to use for close tag e.g. > Widget + enabled = true -- set to false to disable + }, + dev_log = { + enabled = true, + notify_errors = false, -- if there is an error whilst running then notify the user + open_cmd = "tabedit", -- command to us + }, + dev_tools = { + autostart = false, -- autostart devtools server if not detected + auto_open_browser = false, -- Automatically opens devtools in the browser + }, + outline = { + open_cmd = "30vnew", -- command to use to open the outline buffer + auto_open = false -- if true this will open the outline automatically when it is first populated + }, + lsp = { + color = { -- show the derived colours for dart variables + enabled = false, -- whether or not to highlight color variables at all, only supported on flutter >= 2.10 + background = false, -- highlight the background + background_color = nil, -- required, when background is transparent (i.e. background_color = { r = 19, g = 17, b = 24},) + foreground = false, -- highlight the foreground + virtual_text = true, -- show the highlight using virtual text + virtual_text_str = "■", -- the virtual text character to highlight + }, + --- OR you can specify a function to deactivate or change or control how the config is created + capabilities = function(config) + config.specificThingIDontWant = false + return config + end, + analysisExcludedFolders = { "./fvm/" }, + -- see the link below for details on each option: + -- https://github.com/dart-lang/sdk/blob/master/pkg/analysis_server/tool/lsp_spec/README.md#client-workspace-configuration + settings = { + showTodos = true, + completeFunctionCalls = true, + renameFilesWithClasses = "prompt", -- "always" + -- enableSnippets = true, + updateImportsOnRename = true, -- Whether to update imports and other directives when files are renamed. Required for `FlutterRename` command. + } + } + } + -- [[ Configure Flutter tools]] + vim.keymap.set('n', 'r', require('telescope').extensions.flutter.commands, { desc = 'Open command Flutter' }) + vim.keymap.set('n', 'br', function() + vim.cmd('20new') + vim.cmd('te fvm flutter packages pub run build_runner build --delete-conflicting-outputs') + vim.cmd('2sleep | normal G') + end) + -- '20new | te fvm flutter pub get && fvm flutter packages pub run build_runner build --delete-conflicting-outputs | $') + end +}; diff --git a/neovim/kickstart/lua/custom/plugins/highlight-whitepace.lua b/neovim/kickstart/lua/custom/plugins/highlight-whitepace.lua new file mode 100644 index 0000000..7085e5a --- /dev/null +++ b/neovim/kickstart/lua/custom/plugins/highlight-whitepace.lua @@ -0,0 +1,6 @@ +return { + { + "lukoshkin/highlight-whitespace", + config=true, + } +} diff --git a/neovim/kickstart/lua/custom/plugins/venv-selector.lua b/neovim/kickstart/lua/custom/plugins/venv-selector.lua new file mode 100644 index 0000000..af7cd42 --- /dev/null +++ b/neovim/kickstart/lua/custom/plugins/venv-selector.lua @@ -0,0 +1,18 @@ +return { +{ + "linux-cultist/venv-selector.nvim", + dependencies = { + "neovim/nvim-lspconfig", + "mfussenegger/nvim-dap", "mfussenegger/nvim-dap-python", --optional + { "nvim-telescope/telescope.nvim", branch = "0.1.x", dependencies = { "nvim-lua/plenary.nvim" } }, + }, + lazy = false, + branch = "regexp", -- This is the regexp branch, use this for the new version + config = function() + require("venv-selector").setup() + end, + keys = { + { ",v", "VenvSelect" }, + }, + }, +} diff --git a/neovim/kickstart/scratch_config.json b/neovim/kickstart/scratch_config.json new file mode 100644 index 0000000..4b923ab --- /dev/null +++ b/neovim/kickstart/scratch_config.json @@ -0,0 +1 @@ +{"filetype_details": {"go": {"filename": "main", "cursor": {"location": [4, 2], "insert_mode": true}, "requireDir": true, "content": ["package main", "", "func main() {", " ", "}"]}, "json": [], "gp.md": {"cursor": {"location": [12, 2], "insert_mode": true}, "content": ["# topic: ?", "", "- model: {\"top_p\":1,\"temperature\":0.7,\"model\":\"gpt-3.5-turbo-16k\"}", "- file: placeholder", "- role: You are a general AI assistant.", "", "Write your queries after 🗨:. Run :GpChatRespond to generate response.", "", "---", "", "🗨:", ""]}, "yaml": [], "k8s.yaml": {"subdir": "learn-k8s"}}, "use_telescope": true, "filetypes": ["xml", "go", "lua", "js", "py", "sh"], "localKeys": [{"filenameContains": ["gp"], "LocalKeys": [{"cmd": "GpResponse", "modes": ["n", "i", "v"], "key": "k"}]}], "scratch_file_dir": "/home/danmac/.cache/nvim/scratch.nvim", "window_cmd": "edit"} \ No newline at end of file