Giter Site home page Giter Site logo

doom-neovim / doom-nvim Goto Github PK

View Code? Open in Web Editor NEW
1.0K 10.0 108.0 3.12 MB

A Neovim configuration for the advanced martian hacker

License: GNU General Public License v2.0

Lua 94.75% Dockerfile 0.44% Shell 4.81%
doom-nvim neovim neovim-configuration neovim-lua neovim-lsp lua hacktoberfest

doom-nvim's People

Contributors

abzcoding avatar acemouty avatar allcontributors[bot] avatar ashincoder avatar bavalpey avatar bketelsen avatar connorgmeehan avatar dvchoudh avatar dwarfmaster avatar edwintorok avatar emmanueltouzery avatar fryuni avatar github-actions[bot] avatar gustavoprietop avatar jlaw avatar joalon avatar luigipiucco avatar mathisto avatar max397574 avatar molleweide avatar mordechaihadad avatar nextalone avatar ntbbloodbath avatar oeyoews avatar osamuaoki avatar pauldub avatar tamton-aquib avatar trst avatar tuanbass avatar vhyrro 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  avatar  avatar  avatar

doom-nvim's Issues

Problem add Tree-sitter playground plugin

Hey, i think tree-sitter playground is very helpful for user to use tree-sitter. However i have a problem adding it in plugins.lua
Screen Shot 2021-07-24 at 12 50 10 AM
Nvim: 0.5.0
doom-nvim: 3.1.0
OS: Mac OS
I tried install query and reinstall but do not know how to fix

Can't figure out new custom plugin location

I'm probably missing something really basic here, but when I try having plugins.lua be

return {
  "dense-analysis/ale",
}

or

return {
  {"dense-analysis/ale"},
}

I get this when starting nvim

packer.nvim] [ERROR 20:33:11] async.lua:20: Error in coroutine: .../site/pack/packer/opt/packer.nvim/lua/packer/display.lua:784: Vim(lua):E5108: Error executing lua [string ":
lua"]:1: attempt to index global 'Luasnip_current_nodes' (a nil value)

override plugin settings in doomrc

I want to change the file tree to stay open after I open a file.

the setting in the plugin is G.nim_tree_quit_on_open, so I changed it in my doomrc hoping that would load last and override the plugin setting.

Is there a specific place i can make this override where it will be loaded after the plugins?

Thanks for doom-nvim, I've already got a few friends using it too :)

auto pair functions

when using doom vim the auto pair function is not working as it should, when typing in a double quote is not pair, u will have to added the closing quote yourself,

key map not working

they key map functions is not working for my version, i'm running neovim 0.5, the keys maybe broken or something cause it dose not function

develop: WhichKey not found

I followed the instructions to run the develop branch, and neovim reports:

E492: Not an editor command: WhichKey \

I tried with a fresh clone, removed .local/share/nvim..., did it manually and with the install script, both have the same error message.

Idiomatic way to version control (dotfiling) doom configs?

Since ~/.config/doom-nvim/ is a git repo with this github repo as the remote, it's not trivial to add the doomrc.lua, doom_config.lua, and plugins.lua files to a dotfiles manager like yadm.

Is there a recommended way to do this? I was thinking that maybe one could fork the repo & add the fork as a submodule to yadm, but that's not a very clean solution (updates won't work without syncing the fork) (and for me personally I'd rather avoid submodules).

Error when trying to update.

I get this:
E5108: Error executing lua /home/xroot/.config/nvim/lua/doom/core/functions/init.lua:205: bad argument #1 to 'read' (invalid option)
Any tips to troubleshoot this?

nvim-telescope.lua broken config

layout_defaults needs to be change to layout_config and some other changes run :help telescope.changelog-922

would make this a pull request for this but I'm new to to github as well as arch in general hopefully soon

Override default mappings

Hi,
I switched to doom-nvim from my config and I'm missing some mappings, such as mapping <leader><space> to :b#
Simply adding them to doom_config.lua is not enough right now, and I think it should be (I had to uncomment the mapping in the config)

Version 3.0.7 fresh install does not work

I updated doom using :DoomUpdate, but then running neovim afterwards broke neovim.
I tried to reinstall, clearing the old configuration (and the plugins), but it results in an error.
There also seems to be a bug in the bash installation script, where the colors that should be output to the terimal are not done properly (this isn't an issue I care about, but it could be related?)

Here's an example of what I mean .74m[+] Trying to clone doom-nvim ... .72m[✔] Successfully cloned doom-nvim, some demons were released in your terminal! .72m[✔] Installed Doom Nvim and some demons were released, be careful! .74m[+] Checking requirements .72m[✔] Check requirements : git version 2.17.1 .72m[✔] Check requirements : nvim .72m[✔] Check requirements : node .72m[✔] Check requirements : npm

.72m==================================================
.72m You are almost done. Start neovim to install
.72m the plugins and kill some demons.
.72m
.72m Thanks for installing Doom Nvim. If you have any
.72m issue, please report it :)
.72m==================================================

Then, following the installation via the command line provided in the readme, I try to run neovim via nvim command, which resulted in the following error

E5113: Error while calling lua chunk: /home/bavalpey/.config/nvim/init.lua:20: attempt to index field 'opt' (a nil value)
Error detected while processing function bufferline#enable[32]..bufferline#highlight#setup[8]..<SNR>24_fg:
line    2:
E5555: API call: Invalid highlight name: Special
line    3:
E715: Dictionary required```

Snippets expansion

Hi!

Great project, it "just work" as promised and it's fast. Thank you!

I want to add snippets using 'rafamadriz/friendly-snippets', so I've modified 'doomrc':

-- ...
disabled_plugins = {  'minimap', 'restclient'},
-- ...
disabled_modules = {},

custom_plugins = {
                {
                    ['repo'] = 'hrsh7th/vim-vsnip',
                    ['enabled'] = true,
                },
                {
                    ['repo'] = 'hrsh7th/vim-vsnip-integ',
                    ['enabled'] = true,
                },
                {
                    ['repo'] = 'rafamadriz/friendly-snippets',
                    ['enabled'] = true,
                },
},

and 'lua/plugins/configs/nvim-compe.lua':

-- ...
source = {
                path = true,
                buffer = true,
                calc = true,
                vsnip = true,
                nvim_lsp = true,
                nvim_lua = true,
                spell = false,
                tags = true,
                snippets_nvim = false,
                treesitter = true,
        },

The snippets ar present in the completion list, navigating the list with Tab and S-Tab displays the snippet skeleton, but I cannot trigger the completion: pressing Enter just closes the completion menu.

recording.mp4

Any suggestions? Thank you!

leader 2 chars binding issue

Hi again,

These bindings don't take effect from doom_config.lua

        -- jumps
	    {'n', '<leader>ja', '<C-^>', opt },
	    {'n', '<leader>je', '<C-i>', opt }, -- newer cursor position in jump list
	    {'n', '<leader>jo', '<C-o>', opt }, -- older...

but it works with single char like <leader>a

Font requirements

I may have just missed something, but wanted to point this out.

Running on MacOSX with iTerm as the terminal. I had to switch my terminal font preferences to FiraCode Nerd Font Mono (the important part being the Nerd I believe) to get the various little icons and things to show up.

I had the font loaded, but this wasn't my default font.

Defining Custom Keybindings in doom_config.lua causes error

I was trying to map to be in the mappings field of doom_config.lua. However, when I populate the mappings field of doom_config.lua, it reports an error on next launch of neovim.

I tried to use the example provied in the doom_config.lua for this section. However, even copy pasting that example causes the same error.

I tried the following configuration in the mappings section of the local nvim section.

mappings = {
    {'n', '<MiddleMouse>', '<Nop>'},
    {'i', '<MiddleMouse>', '<Nop>'}, 
}

When launching nvim, this results in the following error:

Error executing vim.schedule lua callback: /home/bvalpey/.config/nvim/lua/doom/core/functions/init.lua:70: attempt to call local 'map' (a table value)

It's possible that I am doing something wrong with the syntax. However, I also tried the provided example, which resulted in the same error.

how to add custom options to `doom_config.lua`

Hi,

None of these commands work for me in doom config.

How do I do this right?

	-- Set custom commands
	-- @default = {}
	-- example:
	--   {
	--      'echo "Hello, custom commands!"'
	--   }
	commands = {
	     { 
	        'echo "Hello, custom commands!"'
	     },
	    { 'vim.cmd[[ :set keymap=INSERT_COLEMAK ]]' },
	    { 'vim.cmd[[ :set iminsert=1 ]]' },
	    { 'vim.cmd[[ :set iminsert=0 ]]' },
	},

it gives me this err

Error executing vim.schedule lua callback: ...k/cheovim/start/cheovim/lua/doom/core/functions/init.lua:60: Expected lua string

Fails to run properly; throws error

I have all dependencies including the optional ones and am using the latest neovim nightly. When I go to run it, I get the following error:

E5113: Error while calling lua chunk: /home/killbotvii/.config/nvim/lua/doom/keybindings/init.lua:7: module 'which-k
ey' not found:
        no field package.preload['which-key']
        no file './which-key.lua'
        no file '/home/runner/work/neovim/neovim/.deps/usr/share/luajit-2.1.0-beta3/which-key.lua'
        no file '/usr/local/share/lua/5.1/which-key.lua'
        no file '/usr/local/share/lua/5.1/which-key/init.lua'
        no file '/home/runner/work/neovim/neovim/.deps/usr/share/lua/5.1/which-key.lua'
        no file '/home/runner/work/neovim/neovim/.deps/usr/share/lua/5.1/which-key/init.lua'
        no file './which-key.so'
        no file '/usr/local/lib/lua/5.1/which-key.so'
        no file '/home/runner/work/neovim/neovim/.deps/usr/lib/lua/5.1/which-key.so'
        no file '/usr/local/lib/lua/5.1/loadall.so'

I have already tried to completely delete both the doom-nvim folder and anything related to nvim in the config folder and running the script again, but I get the same error.

Modifying config file make plugins useable (?)

Context
Hi,

Thanks a lot for this very good project! I loved trying to tweak it a bit. One thing that I have noticed is when I am opening the config files, plugins become unavailable.
One way to reproduce it on my machine is to open a config file (doom_config or doomrc for instance) from the start page via the recent file list. I cannot use telescope anymore afterwards or when I save a change in those config files, the FormatWrite function is called (I have auto format on 'true") and an error is displayed.

Second thing, :DoomUpdate does not work, the read() function is calling an error

Process

  • Open doom-nvim
  • Open a config file from start screen, from recent file list
  • Do some modification, save... then error, ff does not work, etc...
  • Plugins are not available anymore on other buffers as well !

Version
3.0.6
Terminal : Kitty, nvim 0.5.0
Distro : Manjaro KDE (updated)

In addition, what are the key bindings for the kommentary plugin?

If you need more info, please let me know!

haskell plugin module err on startup - Intel Mac (pre M1)

Hi,

maybe this has to do with the fact that i installed doom under ~/.config/nvim.config/doom with Cheovim??

I don't know what this is but i post it fyi. I am going to read the contribution guidelines
so that I can contribute with better bug reports going forward.

error goes away by commenting out haskell from doomrc.

nvim-treesitter[haskell]: Error during compilation
src/scanner.cc:79:10: error: expected expression
  return [=](A a) { return f(g(a)); };
         ^
src/scanner.cc:83:10: error: expected expression
  return [=](A a) { return f(g(a)); };
         ^
src/scanner.cc:87:10: error: expected expression
  return [=](A a) { return f(g(a)); };
         ^
src/scanner.cc:90:64: error: expected expression
template<class A, class B> function<B(A)> const_(B b) { return [=](auto _) { return b; }; }
                                                               ^
src/scanner.cc:155:16: error: non-aggregate type 'vector<std::__1::string>' (aka 'vector<basic_string<char, char_traits<char>, allocator<char> > >') c
annot be initialized with an initializer list
vector<string> names = {
               ^       ~
src/scanner.cc:183:69: error: expected expression
bool all(const bool *syms) { return std::all_of(syms, syms + empty, [](bool a) { return a; }); }
                                                                    ^
src/scanner.cc:240:8: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
  for (auto i : state.indents) {
       ^
src/scanner.cc:240:15: warning: range-based for loop is a C++11 extension [-Wc++11-extensions]
  for (auto i : state.indents) {
              ^
src/scanner.cc:285:10: error: expected expression
  return [=](State & state) {
         ^
src/scanner.cc:308:57: error: expected expression
Peek operator&(const Peek & l, const Peek & r) { return [=](uint32_t c) { return l(c) && r(c); }; }
                                                        ^
src/scanner.cc:309:57: error: expected expression
Peek operator|(const Peek & l, const Peek & r) { return [=](uint32_t c) { return l(c) || r(c); }; }
                                                        ^
src/scanner.cc:310:30: error: expected expression
Peek not_(Peek con) { return [=](uint32_t c) { return !con(c); }; }
                             ^
src/scanner.cc:321:72: error: expected expression
Condition operator&(const Condition & l, const Condition & r) { return [=](auto s) { return l(s) && r(s); }; }
                                                                       ^
src/scanner.cc:322:72: error: expected expression
-- More --

jsx/tsx support when enabling javascript/typescript?

The javascript/typescript language options in doomrc.lua doesn't seem to include jsx/tsx (I had to :TSInstall tsx manually and lsp completions aren't enabled). It might make sense to include them, since I believe the language server used for javascript/typescript also supports jsx/tsx

Macros broken?

Is one of these plugins disabling macros? If I launch nvim without any init nvim -u NONE I can use q to record macros like normal. But with doom-nvim pressing q doesn't seem to do anything. I'm not sure how to track it down. I did some searches through the project for macro and looked through some spots, but nothing is jumping out to me as the likely culprit.

Personalized doomrc

Great project! I was looking for a way to keep my doomrc outside of the git tree so I can update doom-nvim without overwriting my doomrc changes. Is that possible now?

TrueZen is not loading??

Either I don't understand how to load it or it isn't loading 📦

so this is the keybinding under lua/doom.. and zen is uncommented in doomrc.

if not functions.is_plugin_disabled('zen') then
	utils.map('n', '<F6>', ':TZAtaraxis<CR>', opts)
end

require "lspconfig"[diagnostic'].manager.try_add()

Screen Shot 2021-07-15 at 11 37 33 AM

Hi, i just update Doom-nvim 3.0.7 and have this issue when i open *.lua file ( but not for other file types ), as i tried to fix it, when i remove "syntax on" line 56 and "packerLoad tree-sitter" the error disappear but my tree-sitter hightlight was gone too. How can it fix this

OS: Mac OS big Sur
Nvim-version: 0.6.0

Failed to run PackerInstall on first time.

Hi, I heard Lua is the better way to configure neovim, so I want to use this awesome config. However, I got some error when installing it, seems like syntax error?

Screenshot from 2021-07-04 19-51-46

Screenshot from 2021-07-04 19-52-45

Any idea how to solve this? Any idea what I should try to debug this problem?

OS: Ubuntu 20.04
Nvim: Latest

Module 'lspinstall' not found

I've been seeing this issue for sometime while checking this project out, I'm not exactly sure how this is triggered. I've tried setup everything 4 times, and I usually end up at this error.

I manage to get everything installed but on reload, this comes up.

Error executing vim.schedule lua callback: /home/silipwn/.config/nvim/lua/doom/core/config/init.lua:421: module 'lspinstall' not found:                                     
        no field package.preload['lspinstall']                                        
        no file './lspinstall.lua'
.....

Is there something I'm missing to configure?

When I run ls ~/.local/share/nvim/site/pack/packer/start/ :

neogit vim-header

Version details:

nvim: v0.6.0-dev+12-gf515baedc
doom-nvim: v3.0.7

mapping problem with commandline and search /

Hi again,

I try this binding

	    {'n', ';', ':'},

and it does work but the command line is not being shown upon pressing ; now.

  1.    press `;`     ->    shows nothing
    
  2.    press `h`     ->    shows `:h`
    

so the command works but it just doesn't show on the first key press / or initial ;.

Does this only happen to me?

And it is the same with / search commands also.
If I press / nothing shows but I know that the command works under the hood.

Theme not being found in path

This may very well be an issue of not understanding the config, but I changed the default theme in doom_config.lua to be doom-nord - it seems to have downloaded the theme files in ~/.local/share... but it can't seem to find what it's looking for.

Screen Shot 2021-07-12 at 13 52 29

can i jump between master and develop branch?

Can I switch between master branch and develop branch without any problems.
Is there anything that i need to be cautious about?? I want to follow the development branch so
that i am more up to date.

LuaSnips not working on default install.

LuaSnip with friendly-snippets doesn't seem to work in the standard install (3.0.5). When I edit a file which should have friendly-snippets support (e.g. lua) nvim-compe doesn't show any snippets. When I run :LuaSnipListAvailable it returns the following...

{                                                                                                                                                                                                                    
  all = {},                                                                                                                                                                                                          
  lua = {}                                                                                                                                                                                                           
}     

I'm not sure LuaSnip is finding and loading friendly-snippets at all, unless I've missed a critical config option to make it work?

bad first impressions

Hi,
as many others now, I'm migrating from init.vim to init.lua. When greping through the Internet I came across on doom-nvim. It's design guides looked very interesting so I proceeded to the Install section. Here is what have made me concern:

  • Installation manual mentions only one way to install doom_nvim: executing a shell script downloaded from the Internet.
  • This shell script doesn't respect XDG_CONFIG_HOME nor XDG_CONFIG_DIRS.
  • For no reason it installs some font and not inform an user about where it was installed.
  • For no reason on Darwin it copies $HOME/.local/share/fonts/* to $HOME/Library/Fonts/.
  • It doesn't uninstall this font when uninstall function is executed.
  • Function named backup_neovim actually installs doom_nvim.
  • In lines 151,152 the install script first creates a directory and then links something from inside of this directory.
  • It verifies only an existence of nvim command but not the version 0.5, which is required.
  • It says that it needsnode and npm which are optional.
  • Actual doom_nvim Lua code doesn't respect XDG_CONFIG_HOME either.

Those are small things but finding them makes me wonder if I have to read all doom_nvim code and verify it's behaviour.

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.