Coder Social home page Coder Social logo

nvim's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

nvim's Issues

pylance stopped working

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?

Could you integrate some telescope extensions?

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]])

vim.diagnostic.config未生效

首先感谢分享您的配置,学到了很多,谢谢😁!!
Lsp在使用过程中,virtual_text有关配置很奇怪,有时生效有时未生效,经过查验是因为跟别的插件起冲突了。应该是因为插件的加载是异步的吧,有时会被其他插件给覆盖掉。求教这种情况该如何调整代码呢?给个思路或者伪码就好,多谢了!!!

Error when Open float toggleterm

Hi, askfiy

Thanks for sharing your great neovim config.
However, I found an error when I open float toggleterm using your config:
image

Can you give me some suggestions to fix this error?

Rust Support

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.

important Notice

Some major changes are described for the convenience of users.

你好 请问notify中ignore_message的编写规则是怎样的呢

有时候会出现这种格式的弹窗,Client 1 quit with exit code 127 and signal 0
我想把这种消息屏蔽掉,但是这种消息里的数字是会变动的,所以我想在ignore_message里添加上这个规则: Client ? quit with exit code ? and signal ?

请问这个?具体填什么的呢

自己新增了一个lsp客户端不能自动启动

我在nvim-lsp-installer中新增了一个这样的lsp客户端,这是一个verilog的语言服务器。
图片

打开了一个verilog文件之后,并不能启动。
图片
在输入了lspstart veridian之后就可以启动这个服务器
图片

some plugins not loaded.

hey, this is a cool project for me. But when I was about to install this Nvim Config with a new install. I got a bit problem with some of these plugins not loaded on start and when I check :PackerStatus there some packages are not loaded or need to be manual install.

2022-09-10_09-01-56_1920x1080

如何添加自己的代码片段

最近在写 c 语言,但是 friendly snippets 给的不是很够,希望可以自定义一些代码片段。
我在目录 snippets 下添加了 c.json,并写了一些片段,但是无法在 c 文件中使用,请问一下我还需要配置哪方面的东西呢

请教一下,怎么把debug ts的代码嵌入进去的

这个基础上进行配置
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了,但我不知道该怎么改这段核心代码才能嵌入到你的文件中

Trying to add a plugin.

I am trying to add a new plugin but I am getting an error during startup every time.

CleanShot 2023-01-25 at 15 13 36

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

mapping of j and k when use snippets

When using the code snippet, if I press j, I want to be able to type j to the current position instead of moving the cursor down a line

image

|
v

image

so i think ... maybe you can change the mapping for j and k from mode v to x

By the way, where is your esc and ctrl keys on the keyboard?

use server_capabilities instead of resolved_capabilities

[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

highlight error

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

Help

Sorry I am totally newbie at nvim, I installed this on a manjaro and got this error, I have no idea how to fix it.
Can I get a little help here?

Screenshot_20230206_160519

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.