Skip to content

Commit

Permalink
feat(neovim): use more explicit file path in statusline
Browse files Browse the repository at this point in the history
  • Loading branch information
tiborpilz committed Jan 6, 2025
1 parent cc88638 commit 6f9b5ac
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 54 deletions.
106 changes: 53 additions & 53 deletions home/config/neovim/lua/plugins/copilot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,57 +30,57 @@ return {
{ "<leader>oc", "<cmd>CopilotToggle<cr>", desc = "Toggle Copilot" },
}
},
{
"yetone/avante.nvim",
event = "VeryLazy",
lazy = false,
version = false, -- set this if you want to always pull the latest change
opts = {
provider = "openai",
auto_suggestions_provider = "openai",
dual_boost = {
enabled = false,
provider = "openai",
second_provider = "openai",
},
-- add any opts here
},
-- if you want to build from source then do `make BUILD_FROM_SOURCE=true`
build = "make",
-- build = "powershell -ExecutionPolicy Bypass -File Build.ps1 -BuildFromSource false" -- for windows
dependencies = {
"stevearc/dressing.nvim",
"nvim-lua/plenary.nvim",
"MunifTanjim/nui.nvim",
--- The below dependencies are optional,
"hrsh7th/nvim-cmp", -- autocompletion for avante commands and mentions
"nvim-tree/nvim-web-devicons", -- or echasnovski/mini.icons
"zbirenbaum/copilot.lua", -- for providers='copilot'
{
-- support for image pasting
"HakonHarnes/img-clip.nvim",
event = "VeryLazy",
opts = {
-- recommended settings
default = {
embed_image_as_base64 = false,
prompt_for_file_name = false,
drag_and_drop = {
insert_mode = true,
},
-- required for Windows users
use_absolute_path = true,
},
},
},
{
-- Make sure to set this up properly if you have lazy=true
'MeanderingProgrammer/render-markdown.nvim',
opts = {
file_types = { "markdown", "Avante" },
},
ft = { "markdown", "Avante" },
},
},
},
-- {
-- "yetone/avante.nvim",
-- event = "VeryLazy",
-- lazy = false,
-- version = false, -- set this if you want to always pull the latest change
-- opts = {
-- provider = "openai",
-- auto_suggestions_provider = "openai",
-- dual_boost = {
-- enabled = false,
-- provider = "openai",
-- second_provider = "openai",
-- },
-- -- add any opts here
-- },
-- -- if you want to build from source then do `make BUILD_FROM_SOURCE=true`
-- build = "make",
-- -- build = "powershell -ExecutionPolicy Bypass -File Build.ps1 -BuildFromSource false" -- for windows
-- dependencies = {
-- "stevearc/dressing.nvim",
-- "nvim-lua/plenary.nvim",
-- "MunifTanjim/nui.nvim",
-- --- The below dependencies are optional,
-- "hrsh7th/nvim-cmp", -- autocompletion for avante commands and mentions
-- "nvim-tree/nvim-web-devicons", -- or echasnovski/mini.icons
-- "zbirenbaum/copilot.lua", -- for providers='copilot'
-- {
-- -- support for image pasting
-- "HakonHarnes/img-clip.nvim",
-- event = "VeryLazy",
-- opts = {
-- -- recommended settings
-- default = {
-- embed_image_as_base64 = false,
-- prompt_for_file_name = false,
-- drag_and_drop = {
-- insert_mode = true,
-- },
-- -- required for Windows users
-- use_absolute_path = true,
-- },
-- },
-- },
-- {
-- -- Make sure to set this up properly if you have lazy=true
-- 'MeanderingProgrammer/render-markdown.nvim',
-- opts = {
-- file_types = { "markdown", "Avante" },
-- },
-- ft = { "markdown", "Avante" },
-- },
-- },
-- },
}
2 changes: 1 addition & 1 deletion home/config/neovim/lua/plugins/ui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ return {
},
{
'filename',
path = 4,
path = 1,
symbols = {
modified = '',
readonly = '',
Expand Down
2 changes: 2 additions & 0 deletions home/config/neovim/mason-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
"lua-language-server": "3.13.5",
"nixpkgs-fmt": "1.3.0",
"node-debug2-adapter": "v1.43.0",
"php-debug-adapter": "v1.35.0",
"phpactor": "2024.11.28.1",
"rnix-lsp": "0.2.5",
"shellcheck": "v0.10.0",
"tailwindcss-language-server": "0.0.27",
Expand Down

0 comments on commit 6f9b5ac

Please sign in to comment.