askfiy / nvim Goto Github PK
View Code? Open in Web Editor NEWAn excellent Neovim configuration, which is as powerful as Vscode, is lightning fast ⚡
License: Mozilla Public License 2.0
An excellent Neovim configuration, which is as powerful as Vscode, is lightning fast ⚡
License: Mozilla Public License 2.0
I used this config but the rainbow parentheses doesn't work at the time I open any buffer. Using TSEnable rainbow
can enabled it manually.
首先感谢分享您的配置,学到了很多,谢谢😁!!
Lsp在使用过程中,virtual_text有关配置很奇怪,有时生效有时未生效,经过查验是因为跟别的插件起冲突了。应该是因为插件的加载是异步的吧,有时会被其他插件给覆盖掉。求教这种情况该如何调整代码呢?给个思路或者伪码就好,多谢了!!!
like zoxide, fzf, dap
5 vim.cmd([[packadd telescope-fzf-native.nvim]])
6 vim.cmd([[packadd telescope-project.nvim]])
7 vim.cmd([[packadd telescope-frecency.nvim]])
8 vim.cmd([[packadd telescope-zoxide]])
Hi, I know it's not my place to ask, but I tried to use your pylance installation code and it works for pylance versions prior october. The versions after that throw a license error. I tried to look into server.bundle.js
file to look at what I can do, but reading obfuscated javascript code feels like a nightmare. Could you give me some hints or directions, if you don't mind?
Hey awesome project @askfiy
I followed your configuration, however I couldn't get it running with Mason and rust-tools/rust analyzer. Could you help me with the configuration or include the configuration directly into the project.
packer.nvim: Error running config for catppuccin: /home/harriszh/.config/nvim/lua/utils/api/hi.lua:16: Vim(highlight)::E411: highlight group not found: BufferLineIndicator
I can find it in lua/configure/theme/catppuccin/highlights.lua. but I don't know how to debug it
如果慢点按k向上移动的时候会有大概1s延迟,但是按j向下移动就不会有延迟
这个基础上进行配置
https://github.com/LunarVim/nvim-basic-ide
安装ts debug环境
https://github.com/mxsdev/nvim-dap-vscode-js
//Plugin
use { "mxsdev/nvim-dap-vscode-js", requires = {"mfussenegger/nvim-dap"} }
//Debugger
//With Packer(必须用packer安装,手动安装的话debug会出错)
use {
"microsoft/vscode-js-debug",
opt = true,
run = "npm install --legacy-peer-deps && npm run compile",
tag = 'v1.74.1'
}
核心代码
local dap = require('dap')
require("dap-vscode-js").setup({
node_path = 'node',
debugger_path = os.getenv('HOME') .. '/.local/share/nvim/site/pack/packer/opt/vscode-js-debug',
adapters = { 'pwa-node', 'pwa-chrome', 'pwa-msedge', 'node-terminal', 'pwa-extensionHost' },
})
for _, language in ipairs({ "typescript", "javascript" }) do
dap.configurations[language] = {
{
type = "pwa-node",
request = "launch",
name = "Launch file",
program = "${file}",
cwd = "${workspaceFolder}",
sourceMaps = true,
protocol = "inspector",
console = "integratedTerminal",
outFiles = { "${workspaceFolder}/dist/**/*.js" },
runtimeExecutable = 'node',
skipFiles = { "<node_internals>/**", "node_modules/**" },
resolveSourceMapLocations = { "${workspaceFolder}/dist/**/*.js", "${workspaceFolder}/**", "!**/node_modules/**" }
}
end
经过测试是可以正常调试ts了,但我不知道该怎么改这段核心代码才能嵌入到你的文件中
修改了主题,加载的还是以前的vscode那个主题,什么原因?
最近在写 c 语言,但是 friendly snippets 给的不是很够,希望可以自定义一些代码片段。
我在目录 snippets 下添加了 c.json,并写了一些片段,但是无法在 c 文件中使用,请问一下我还需要配置哪方面的东西呢
I am trying to add a new plugin but I am getting an error during startup every time.
Plugin: zk-nvim
I have added the plugin to the plugins.tools
section in the lua/core/plugins.lua
file. I have tried many variations of this even just calling M.setup()
in the load function.
...
plugin.tools = {
{ "uga-rosa/translate.nvim" },
{ "olimorris/persisted.nvim" },
{ "norcalli/nvim-colorizer.lua" },
{ "askfiy/nvim-picgo", module = "nvim-picgo" },
{ "kristijanhusak/vim-carbon-now-sh", cmd = { "CarbonNowSh" } },
{ "lewis6991/gitsigns.nvim", event = { "BufRead", "BufNewFile" } },
{ "dstein64/vim-startuptime", cmd = { "StartupTime" } },
{ "folke/which-key.nvim", event = { "BufRead", "BufNewFile" } },
{ 'mickael-menu/zk-nvim' },
}
...
I have also added the config file in lua/config/zk-nvim.lua
-- https://github.com/mickael-menu/zk-nvim
local api = require("utils.api")
local M = {
requires = {
"zk",
},
}
function M.before()
M.register_key()
end
function M.load()
M.setup({
-- can be "telescope", "fzf" or "select" (`vim.ui.select`)
-- it's recommended to use "telescope" or "fzf"
picker = "telescope",
lsp = {
-- `config` is passed to `vim.lsp.start_client(config)`
config = {
cmd = { "zk", "lsp" },
name = "zk",
-- on_attach = ...
-- etc, see `:h vim.lsp.start_client()`
},
-- automatically attach buffers in a zk notebook that match the given filetypes
auto_attach = {
enabled = true,
filetypes = { "markdown" },
},
},
})
end
function M.after() end
function M.register_key() end
function M.register_key()
local opts = { noremap=true, silent=false }
api.map.bulk_register({
{
mode = { "n" },
lhs = "<leader>zn",
rhs = "<cmd>ZkNew { dir = vim.fn.expand('%:p:h'), title = vim.fn.input('Title: ') }<cr>",
options = opts,
description = "Create a new note after asking for it's title.",
},
{
mode = { "n" },
lhs = "<leader>zo",
rhs = "<cmd>ZkNotes { sort = { 'modified' } }<cr>",
options = opts,
description = "Open Notes.",
},
{
mode = { "n" },
lhs = "<leader>zt",
rhs = "<cmd>ZkTags<cr>",
options = opts,
description = "Open notes associated with tags.",
},
{
mode = { "n" },
lhs = "<leader>zf",
rhs = "<cmd>ZkNotes { sort = { 'modified' }, match = { vim.fn.input('Search') } }<cr>",
options = opts,
description = "Search for notes matching a given query.",
},
{
mode = { "v" },
lhs = "<leader>zf",
rhs = "<cmd>ZkMatch<cr>",
options = opts,
description = "Search for notes matching the current visual selection.",
},
})
end
Some major changes are described for the convenience of users.
有时候会出现这种格式的弹窗,Client 1 quit with exit code 127 and signal 0
,
我想把这种消息屏蔽掉,但是这种消息里的数字是会变动的,所以我想在ignore_message里添加上这个规则: Client ? quit with exit code ? and signal ?
请问这个?具体填什么的呢
Aerial: use lspkind to configure symbols instead of config value 'icons'
[LSP] Accessing client.resolved_capabilities is deprecated, update your plugins or configuration to access client.server_capabilities instead.The new key/value pairs in server_capabilities directly match those defined in the language server protocol
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.