GithubHelp home page GithubHelp logo

nshen / insisvim Goto Github PK

View Code? Open in Web Editor NEW
147.0 7.0 35.0 12.77 MB

🗃 An out-of-the-box Neovim IDE solution that setup development environment in an incredibly simple way.

License: MIT License

Lua 100.00%
neovim neovim-configuration

insisvim's Introduction

👋 Hi, I am a self-taught programmer✨ who has been a Flash/Flex developer for over 10 years.

Currently, I am interested in full-stack web development and game development.

🤔 After working in Beijing and Shanghai for many years, I returned to my hometown and started my full-time remote life at @UrbanCompass -> @RSS3 -> @connect3world

GitHub followers zhihu

💖 Below is a list of npm packages I have published

Project NPM Downloads Description
vite-plugin-wasm-pack npm npm 🦀 Vite plugin for rust wasm-pack.
create-cesium npm npm 🌏 Create blazing fast Cesium apps with no configuration.
vite-plugin-cesium npm npm ⚡ A Vite plugin help you set up a Cesium project in Vite.
narrowing npm npm 🤖 Tiny TypeScript narrowing helpers you better use.
ogl-typescript npm npm 🔺 TypeScript port of OGL Minimal WebGL library.

我是 Neovim 的粉丝,欢迎试用并 Folk 我的配置 InsisVim ,如果你想了解内部实现细节,请看下边 👇

🎉🎉🎉 我的掘金小册 《Neovim 配置实战:从 0 到 1 打造自己的 IDE》 发售中,Github 专属 7折 付款码 LZy9QUOg,感谢支持 🤞。

欢迎访问我的博客 Nshen.net

💢 Improving

Nshen's GitHub stats

📫 Talk to me:

  • 💬 Twitter: @nshen121
  • 💬 WeChat: nshen121
  • 💬 Email: nshen121(at)gmail(dot)com

insisvim's People

Contributors

charles1614 avatar diaozxin007 avatar lizhuoran1019 avatar nshen avatar pad0van avatar s-leeq avatar

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  avatar  avatar  avatar

insisvim's Issues

do nothing with command "gd" and "gr"

Hello everyone, I installed nvim according to the tutorial, but when using the commands gd and gr, there was no response, that is, I was unable to view the definition and references of functions. Other functions are currently being tested normally!

自己配置Neovim的问题请教

大佬您好,我想想参考着您配置这个自己配,将插件的快捷键和vim自身相关的快捷键配置分开载入,但我遇到的问题是但这样布置以后插件的快捷键没有办法载入,就不起作用,我想请教您一下问题出现在那里啊,是不是那个细节遗漏了

A problem of cpp language cofiguration.

我在 ~/.config/nvim/init.lua 中添加了以下语句来试图使其支持 c++

require("insis").setup({
  clangd = {
    enable = true,
    format_on_save = true,
  },
})

在完成 Mason 的安装之后使用 nvim test.cpp 命令打开 c++ 文件时,出现如下报错:

Error detected while processing BufReadPost Autocommands for "*":
Error executing lua callback: /usr/local/nvim/share/nvim/runtime/filetype.lua:24
: Error executing lua: /usr/local/nvim/share/nvim/runtime/filetype.lua:25: BufRe
adPost Autocommands for "*"..FileType Autocommands for "*": Vim(append):Error ex
ecuting lua callback: ...cal/nvim/share/nvim/runtime/lua/vim/treesitter/query.lu
a:259: query: invalid structure at position 338 for language cpp
stack traceback:
        [C]: in function '_ts_parse_query'
        ...cal/nvim/share/nvim/runtime/lua/vim/treesitter/query.lua:259: in func
tion 'get_query'
        .../share/nvim/lazy/nvim-ts-rainbow2/lua/ts-rainbow/lib.lua:70: in funct
ion 'get_query'
        ...are/nvim/lazy/nvim-ts-rainbow2/lua/ts-rainbow/module.lua:30: in funct
ion 'is_supported'
        ...vim/lazy/nvim-treesitter/lua/nvim-treesitter/configs.lua:387: in func
tion 'is_enabled'
        ...vim/lazy/nvim-treesitter/lua/nvim-treesitter/configs.lua:507: in func
tion 'attach_module'
        ...vim/lazy/nvim-treesitter/lua/nvim-treesitter/configs.lua:532: in func
tion 'reattach_module'
        ...vim/lazy/nvim-treesitter/lua/nvim-treesitter/configs.lua:133: in func
tion <...vim/lazy/nvim-treesitter/lua/nvim-treesitter/configs.lua:132>
        [C]: in function 'nvim_cmd'
        /usr/local/nvim/share/nvim/runtime/filetype.lua:25: in function </usr/lo
cal/nvim/share/nvim/runtime/filetype.lua:24>
        [C]: in function 'nvim_buf_call'
        /usr/local/nvim/share/nvim/runtime/filetype.lua:24: in function </usr/lo
cal/nvim/share/nvim/runtime/filetype.lua:10>
stack traceback:
        [C]: in function 'nvim_cmd'
        /usr/local/nvim/share/nvim/runtime/filetype.lua:25: in function </usr/lo
cal/nvim/share/nvim/runtime/filetype.lua:24>
        [C]: in function 'nvim_buf_call'
        /usr/local/nvim/share/nvim/runtime/filetype.lua:24: in function </usr/lo
cal/nvim/share/nvim/runtime/filetype.lua:10>
stack traceback:
        [C]: in function 'nvim_buf_call'
        /usr/local/nvim/share/nvim/runtime/filetype.lua:24: in function </usr/lo
cal/nvim/share/nvim/runtime/filetype.lua:10>
Press ENTER or type command to continue

环境信息

kubuntu 23.04

如何添加额外的插件

感谢作者开源项目,上手确实快了不少。想问一下如果自己要添加额外的插件支持,需要怎么做。比如引入hop.nvim,谢谢

Nvim-tree第一次无法用快捷键呼出

您好,首先感谢您的教学,买了您在掘金上的小册子,学到了很多东西。一步一步跟完了,现在体验一下InsisVim.目前发现了2个问题:

  1. 在办公室的Lmint系统上,安装配置都没有问题,一次通过。但是Nvim-tree用<leader>m 或者<A-m>呼不出来,必须使用:NvimTreeToggle命令呼出来一次之后,快捷键就可以正常使用了,其实不影响使用,但是很好奇,想请教下这是怎么回事儿?
  2. 在家里的Mac本上,安装配置正常通过,但是编辑文件时,右侧会有一大堆xx% Search in files...的提示,然后界面就卡死了,也无法正常退出,只能关闭Iterm2,想请教下这是哪个插件出了问题?

国内用户建议使用 ghproxy 加快插件安装速度

例如:

local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
  vim.fn.system({
    "git",
    "clone",
    "--filter=blob:none",
    "https://ghproxy.com/https://github.com/folke/lazy.nvim.git",
    "--branch=v10.4.1",
    lazypath,
  })
end
vim.opt.rtp:prepend(vim.env.LAZY or lazypath)

require("lazy").setup({
	spec = {
	...
	},
    git = {
      url_format = "https://ghproxy.com/https://github.com/%s"
    },
	performance = {
		rtp = {
			-- disable some rtp plugins
			disabled_plugins = {
               "2html_plugin",
               "getscript",
               "getscriptPlugin",
               "gzip",
               "logipat",
               "netrw",
               "netrwPlugin",
               "netrwSettings",
               "netrwFileHandlers",
               "matchit",
               "tar",
               "tarPlugin",
               "rrhelper",
               "spellfile_plugin",
               "vimball",
               "vimballPlugin",
               "zip",
               "zipPlugin",
               "tutor",
               "rplugin",
               "synmenu",
               "optwin",
               "compiler",
               "bugreport",
               "ftplugin",
			},
		},
	},
})
-- EOF

开启frontend后,.vue文件里lsp快捷键失效

项目基本信息:
vite3+vue3+typescript

.eslintrc.json文件配置:

{
    "env": {
        "browser": true,
        "es2021": true,
        "node": true
    },
    "extends": [
        "eslint:recommended",
        "plugin:vue/vue3-essential",
        "plugin:@typescript-eslint/recommended"
    ],
    "overrides": [
    ],
    "parser": "vue-eslint-parser",
    "parserOptions": {
        "ecmaVersion": "latest",
        "parser":"@typescript-eslint/parser",
        "sourceType": "module"
    },
    "plugins": [
        "vue",
        "@typescript-eslint"
    ],
    "rules": {
    }
}

目前.ts/.tsx/.json文件均正常,但是.vue文件中gp、gd、rn、ac等lsp里配置的快捷键都无法使用,如rn会触发“r”+“'n'”的替换当前光标选中文本为'n'的操作。实在不知道怎么找问题了,求大佬指点。

怎么开启C++、Lua语言代码开发功能?

博主你好,我下载了你的项目,我没打开一个文件,都会提示
“Spawning language server with cmd: lua-language-server failed. The language server is either not installed, missing from PATH, or not executable.│”
这个问题怎么解决?
代码开发功能,我看你的README中写的在最外层的init.lua文件中添加了

require("insis").setup({
  golang = {
    enable = true,
    lsp = "gopls",
    linter = "golangci-lint",
    formatter = "gofmt",
    format_on_save = true,
  },
})

直接把CPU跑到了100%。
请问怎么开启代码开发功能

Ubuntu installation guide

  1. install git

sudo apt install git

  1. install Node 19
curl -fsSL https://deb.nodesource.com/setup_19.x | sudo -E bash - &&\
sudo apt-get install -y nodejs
  1. install nvim 8.x
curl -O -L https://github.com/neovim/neovim/releases/download/stable/nvim-linux64.deb
sudo apt-get download mime-support
sudo apt install ./nvim-linux64.deb
  1. install rg

sudo apt-get install ripgrep

  1. finally install insisvim

npx zx https://insisvim.github.io/install.mjs

nvim-tree怎么识别项目目录?

我是从小册过来的,之前用的dashboard可以识别项目根目录,现在的这个好像没有,主目录也没有项目的选项了。每次只能打开某个文件,然后目录树就是从根出发的。我打开一个go项目,他进入依赖的源码再返回之后,目录树就会变成项目根目录。不是很清楚其中的机制。如果有识别项目的方法,那么telescope查询也会快很多吧

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.